(ank): don't zero password if --random-key was given.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4241 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -119,7 +119,7 @@ add_new_key(int argc, char **argv)
|
|||||||
out:
|
out:
|
||||||
if(princ_ent)
|
if(princ_ent)
|
||||||
krb5_free_principal(context, princ_ent);
|
krb5_free_principal(context, princ_ent);
|
||||||
if(password)
|
if(!rkey && password)
|
||||||
memset(password, 0, strlen(password));
|
memset(password, 0, strlen(password));
|
||||||
return 0;
|
return 0;
|
||||||
usage:
|
usage:
|
||||||
|
Reference in New Issue
Block a user