From 9687fcd4d50b0696550859a661c498e3c1566577 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Mon, 11 Jan 1993 15:14:43 +0000 Subject: [PATCH] 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 --- src/kadmin/kpasswd/kpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.26.2