diff options
| author | Greg Hudson <ghudson@mit.edu> | 2010-03-17 21:10:10 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2010-03-17 21:10:10 +0000 |
| commit | 8b640863c756137b3bc8d3146cbd74040b3b1088 (patch) | |
| tree | b7d6a29a978910fe02e828e02de4b47f643110f2 /src | |
| parent | 7ce25ce72802f0719a234b3f8f98fce4baab057f (diff) | |
| download | krb5-8b640863c756137b3bc8d3146cbd74040b3b1088.tar.gz krb5-8b640863c756137b3bc8d3146cbd74040b3b1088.tar.xz krb5-8b640863c756137b3bc8d3146cbd74040b3b1088.zip | |
When checking for KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT, don't
dereference options if it's NULL.
ticket: 6681
target_version: 1.8.1
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23815 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/krb5/krb/gic_pwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/gic_pwd.c b/src/lib/krb5/krb/gic_pwd.c index cadd7ad35..7b437272f 100644 --- a/src/lib/krb5/krb/gic_pwd.c +++ b/src/lib/krb5/krb/gic_pwd.c @@ -218,7 +218,7 @@ krb5_get_init_creds_password(krb5_context context, * to prompt. Prompting is only disabled if the option has been set * and the value has been set to false. */ - if (!(options->flags & KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT)) + if (options && !(options->flags & KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT)) goto cleanup; /* ok, we have an expired password. Give the user a few chances |
