(decode_packet): check success of krb5_425_conv_principal. from
<shadow@dementia.org> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9578 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 - 2000 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1999 - 2001 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -873,8 +873,14 @@ decode_packet(krb5_context context,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
krb5_425_conv_principal(context, ad.pname, ad.pinst, ad.prealm,
|
ret = krb5_425_conv_principal(context, ad.pname, ad.pinst, ad.prealm,
|
||||||
&client);
|
&client);
|
||||||
|
if (ret) {
|
||||||
|
krb5_warnx (context, "krb5_425_conv_principal: %d", ret);
|
||||||
|
make_you_loose_packet (KADM_NOMEM, reply);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
krb5_unparse_name(context, client, &client_str);
|
krb5_unparse_name(context, client, &client_str);
|
||||||
|
|
||||||
ret = kadm5_init_with_password_ctx(context,
|
ret = kadm5_init_with_password_ctx(context,
|
||||||
|
Reference in New Issue
Block a user