Small fix in case anyone tries compiling without the keytab fallback
authorRichard Basch <probe@mit.edu>
Thu, 11 Apr 1996 00:34:56 +0000 (00:34 +0000)
committerRichard Basch <probe@mit.edu>
Thu, 11 Apr 1996 00:34:56 +0000 (00:34 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7786 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/rd_svc_key.c

index 2b08baea6727fb4838202de9c2cd8d9eb55babb3..fa2638819a005fbd73a213bab5891bcd1e2ee7a3 100644 (file)
@@ -181,9 +181,12 @@ int read_service_key(service,instance,realm,kvno,file,key)
        krb5_kt_free_entry(context, &kt_entry);
     }
     krb5_free_context(context);
+
+    if (! retval)
+       return KSUCCESS;
 #endif
     
-    return (retval ? kret : KSUCCESS);
+    return kret;
 }
 
 /* kvno is passed by reference, so that if it is zero, and we find a match,