krb5_stdccv3_generate_new returns NULL ccache
authorAlexandra Ellwood <lxs@mit.edu>
Thu, 16 Nov 2006 20:48:03 +0000 (20:48 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Thu, 16 Nov 2006 20:48:03 +0000 (20:48 +0000)
Fixed krb5_stdccv3_generate_new so it no longer returns a NULL ccache.

ticket: new
target_version: 1.6
tags: pullup

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

src/lib/krb5/ccache/ccapi/stdcc.c

index c9133efcd540de3af8bb9a1cedaae8ac2ab2a722..d2a23be96a2c8ed69909fc03c404ab25fe109da1 100644 (file)
@@ -278,12 +278,12 @@ krb5_stdccv3_generate_new (krb5_context context, krb5_ccache *id )
     }
     
     if (!err) {
-        err = cc_context_create_new_ccache(gCntrlBlock, cc_credentials_v5, 0L,
-                                           &ccapi_data->NamedCache);
+        err = cc_context_create_new_ccache (gCntrlBlock, cc_credentials_v5, 0L,
+                                            &ccache);
     }
     
     if (!err) {
-        err = cc_ccache_get_name (ccapi_data->NamedCache, &ccstring);
+        err = cc_ccache_get_name (ccache, &ccstring);
     }
     
     if (!err) {