Update krb5_gic_opt_private and related code to reflect the change of
authorTom Yu <tlyu@mit.edu>
Tue, 23 Nov 2010 23:51:50 +0000 (23:51 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 23 Nov 2010 23:51:50 +0000 (23:51 +0000)
krb5_expire_callback_func from a function typedef to a function
pointer typedef.  This was causing segfaults.

ticket: 6825

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24532 dc483132-0cff-0310-8789-dd5450dbe970

src/include/k5-int.h
src/lib/krb5/krb/gic_pwd.c

index 446c1fa740eba566975bee4ec4235c91c19cc8fe..a0d7c1728549de7e2f4cb932155f97d6d2402baf 100644 (file)
@@ -1150,7 +1150,7 @@ typedef struct _krb5_gic_opt_private {
     char * fast_ccache_name;
     krb5_ccache out_ccache;
     krb5_flags fast_flags;
-    krb5_expire_callback_func *expire_cb;
+    krb5_expire_callback_func expire_cb;
     void *expire_data;
 } krb5_gic_opt_private;
 
index 1e0b741e38ac141395996a1832b492ad89284db7..1fdc814d2262db0ce72c3ec5e1a964ddf4ad4483 100644 (file)
@@ -159,7 +159,7 @@ warn_pw_expiry(krb5_context context, krb5_get_init_creds_opt *options,
 
     ret = krb5int_gic_opt_to_opte(context, options, &opte, 0, "");
     if (ret == 0 && opte->opt_private->expire_cb != NULL) {
-        krb5_expire_callback_func *cb = opte->opt_private->expire_cb;
+        krb5_expire_callback_func cb = opte->opt_private->expire_cb;
         void *cb_data = opte->opt_private->expire_data;
 
         /* Invoke the expire callback and don't send prompter warnings. */