(add_one_principal): `password' can cactually be NULL in the overwrite
code, check for it. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7070 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -169,7 +169,8 @@ out:
|
|||||||
krb5_free_principal (context, princ_ent);
|
krb5_free_principal (context, princ_ent);
|
||||||
if(default_ent)
|
if(default_ent)
|
||||||
kadm5_free_principal_ent (context, default_ent);
|
kadm5_free_principal_ent (context, default_ent);
|
||||||
memset (password, 0, strlen(password));
|
if (password != NULL)
|
||||||
|
memset (password, 0, strlen(password));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user