summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Eichin <eichin@mit.edu>1996-03-18 02:46:10 +0000
committerMark Eichin <eichin@mit.edu>1996-03-18 02:46:10 +0000
commit506a81110933aa136db205eacd09a4c58a42802d (patch)
treee83fe5e17ec663db075d72535f1053544fa9dc11 /src
parent805c9d544c84245b8323ec87c4102c7ebdd26459 (diff)
downloadkrb5-506a81110933aa136db205eacd09a4c58a42802d.tar.gz
krb5-506a81110933aa136db205eacd09a4c58a42802d.tar.xz
krb5-506a81110933aa136db205eacd09a4c58a42802d.zip
malloc the new length, not the old, esp. since we just check that the
old length was zero git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7654 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/in_tkt_pwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/in_tkt_pwd.c b/src/lib/krb5/krb/in_tkt_pwd.c
index ce954a7d8..52ef240b9 100644
--- a/src/lib/krb5/krb/in_tkt_pwd.c
+++ b/src/lib/krb5/krb/in_tkt_pwd.c
@@ -60,7 +60,7 @@ pwd_keyproc(context, type, salt, keyseed, key)
if (!password->length) {
pwsize = BUFSIZ;
- if ((password->data = malloc(password->length)) == NULL)
+ if ((password->data = malloc(pwsize)) == NULL)
return ENOMEM;
if ((retval = krb5_read_password(context, krb5_default_pwd_prompt1, 0,