(kadm5_s_get_principal): handle modified_by->principal == NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7674 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -87,11 +87,12 @@ kadm5_s_get_principal(void *server_handle,
|
|||||||
out->mod_date = ent.created_by.time;
|
out->mod_date = ent.created_by.time;
|
||||||
}
|
}
|
||||||
if(mask & KADM5_MOD_NAME) {
|
if(mask & KADM5_MOD_NAME) {
|
||||||
if(ent.modified_by)
|
if(ent.modified_by) {
|
||||||
ret = krb5_copy_principal(context->context,
|
if (end.modified_by->principal != NULL)
|
||||||
ent.modified_by->principal,
|
ret = krb5_copy_principal(context->context,
|
||||||
&out->mod_name);
|
ent.modified_by->principal,
|
||||||
else
|
&out->mod_name);
|
||||||
|
} else
|
||||||
ret = krb5_copy_principal(context->context,
|
ret = krb5_copy_principal(context->context,
|
||||||
ent.created_by.principal,
|
ent.created_by.principal,
|
||||||
&out->mod_name);
|
&out->mod_name);
|
||||||
|
Reference in New Issue
Block a user