From: Tom Yu Date: Tue, 22 Mar 2005 23:25:08 +0000 (+0000) Subject: pullup from trunk X-Git-Tag: krb5-1.4.3-beta1~84 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bd58274dfc3b2fe897dbfe2c1a3a3025c9598992;p=krb5.git pullup from trunk ticket: 2918 version_fixed: 1.4.1 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-4@17133 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 4280ec761..ba5562ed1 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,9 @@ +2005-02-09 Tom Yu + + * gic_pwd.c (krb5_get_init_creds_password): Fix so empty password + string causes prompting and doesn't cause truncation of password + to zero characters. + 2005-01-17 Jeffrey Altman * unparse.c: krb5_unparse_name, krb5_unparse_name_ext() prevent null pointer dereferencing if either 'name' or 'size' diff --git a/src/lib/krb5/krb/gic_pwd.c b/src/lib/krb5/krb/gic_pwd.c index de0f47df3..f2837effb 100644 --- a/src/lib/krb5/krb/gic_pwd.c +++ b/src/lib/krb5/krb/gic_pwd.c @@ -104,7 +104,7 @@ krb5_get_init_creds_password(krb5_context context, krb5_creds *creds, krb5_princ pw0.data = pw0array; - if (password) { + if (password && password[0]) { if ((pw0.length = strlen(password)) > sizeof(pw0array)) { ret = EINVAL; goto cleanup;