]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Invalid assignment while trying to set input to NULL
authorAlexandra Ellwood <lxs@mit.edu>
Thu, 13 Mar 2008 17:51:09 +0000 (17:51 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Thu, 13 Mar 2008 17:51:09 +0000 (17:51 +0000)
cc_seq_fetch_NCs_end and cc_seq_fetch_creds_end should try to set their
iterator inputs to NULL.  Fixed code to assign the inputs to NULL rather
than the temporary variables.  (Not sure why the previous code was
even compiling on the Mac.)

ticket: new

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

src/ccapi/lib/ccapi_v2.c

index b19a807dec54ecbdf32985b728cb71122b1279b2..08100481b39c130fd7844cd30f55f325a44fbab7 100644 (file)
@@ -723,6 +723,10 @@ cc_result cc_seq_fetch_NCs_end (apiCB       *in_context,
         err = ccapi_ccache_iterator_release (iterator);
     }
     
+    if (!err) {
+        *io_iterator = NULL;
+    }
+    
     return cci_remap_error (err);
 }
 
@@ -822,7 +826,7 @@ cc_result cc_seq_fetch_creds_end (apiCB       *in_context,
     }
     
     if (!err) {
-        *iterator = NULL;
+        *io_iterator = NULL;
     }
     
     return cci_remap_error (err);