summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1993-01-11 15:14:43 +0000
committerTheodore Tso <tytso@mit.edu>1993-01-11 15:14:43 +0000
commit9687fcd4d50b0696550859a661c498e3c1566577 (patch)
treea85765d2e278f23720f927e700d5de8011721020 /src
parentd282068fba6fb539cc92ff45d3f737e95e52ab15 (diff)
Fix silly bug in kpasswd that caused it to report "out of memory"
every time it is run on some machines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2480 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/kadmin/kpasswd/kpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kadmin/kpasswd/kpasswd.c b/src/kadmin/kpasswd/kpasswd.c
index 02d78f0a4..f6dfd3959 100644
--- a/src/kadmin/kpasswd/kpasswd.c
+++ b/src/kadmin/kpasswd/kpasswd.c
@@ -150,7 +150,7 @@ OLDDECLARG(krb5_pa_data **, padata)
arg = &arg2;
}
my_keyblock = (krb5_keyblock *)malloc(sizeof(**key));
- if (!*key) {
+ if (!my_keyblock) {
if (f_salt) xfree(salt.data);
if (arg != (struct v4_pwd_keyproc_arg *) keyseed)
memset((char *) arg->password.data, 0, arg->password.length);