summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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,