stdcc.c: fix v2 version of krb5_stdcc_resolve()
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 17 Jul 2006 15:44:24 +0000 (15:44 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 17 Jul 2006 15:44:24 +0000 (15:44 +0000)
      cc_open() returning CC_NOEXIST should not be
      considered fatal.

ticket: 3961

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

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

index 277b29cdc2f7d6abaae5de779deee36aa8db85c3..34428c08cae3e3eeb83ed583c4ba8b305deb447e 100644 (file)
@@ -898,7 +898,10 @@ krb5_error_code KRB5_CALLCONV  krb5_stdcc_resolve
                      &ccapi_data->NamedCache);
         if (err != CC_NOERROR) {
                ccapi_data->NamedCache = NULL;
-               goto errout;
+               if (err != CC_NO_EXIST) {
+                       retval = cc_err_xlate(err);
+                       goto errout;
+               }
         }
         
        /* return new cache structure */