svn rev #23815: trunk/src/lib/krb5/krb/

ghudson@MIT.EDU ghudson at MIT.EDU
Wed Mar 17 17:10:10 EDT 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=23815
Commit By: ghudson
Log Message:
ticket: 6681
target_version: 1.8.1
tags: pullup

When checking for KRB5_GET_INIT_CREDS_OPT_CHG_PWD_PRMPT, don't
dereference options if it's NULL.



Changed Files:
U   trunk/src/lib/krb5/krb/gic_pwd.c
Modified: trunk/src/lib/krb5/krb/gic_pwd.c
===================================================================
--- trunk/src/lib/krb5/krb/gic_pwd.c	2010-03-17 20:16:32 UTC (rev 23814)
+++ trunk/src/lib/krb5/krb/gic_pwd.c	2010-03-17 21:10:10 UTC (rev 23815)
@@ -218,7 +218,7 @@
      * 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




More information about the cvs-krb5 mailing list