diff options
author | Tom Yu <tlyu@mit.edu> | 2009-08-28 20:29:24 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2009-08-28 20:29:24 +0000 |
commit | e2d100ad59c313807a43162225d049d6797933ff (patch) | |
tree | 583d4628aae5a24ff5dad1e32e2c122640215b9d /src/kadmin | |
parent | ba7980be8be6d4403feb85562d988d54f20c1fa2 (diff) | |
download | krb5-e2d100ad59c313807a43162225d049d6797933ff.zip krb5-e2d100ad59c313807a43162225d049d6797933ff.tar.gz krb5-e2d100ad59c313807a43162225d049d6797933ff.tar.bz2 |
Remove bogus conditional from tcl_kadm5_randkey_principal(), which was
causing unparse_keyblocks() to get stack garbage as num_keys when
num_var was "null", thus overrunning the end of the array.
ticket: 6544
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22645 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin')
-rw-r--r-- | src/kadmin/testing/util/tcl_kadm5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kadmin/testing/util/tcl_kadm5.c b/src/kadmin/testing/util/tcl_kadm5.c index 15ae99f..6679ce0 100644 --- a/src/kadmin/testing/util/tcl_kadm5.c +++ b/src/kadmin/testing/util/tcl_kadm5.c @@ -2033,7 +2033,7 @@ static int tcl_kadm5_randkey_principal(ClientData clientData, ret = kadm5_randkey_principal(server_handle, princ, keyblock_var ? &keyblocks : 0, - num_var ? &num_keys : 0); + &num_keys); if (ret == KADM5_OK) { if (keyblock_var) { |