From ed218b9db8c16f6f8fd32a85ac407f53f9523d6e Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Thu, 11 Apr 1996 00:34:56 +0000 Subject: [PATCH] Small fix in case anyone tries compiling without the keytab fallback git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7786 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb4/rd_svc_key.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/krb4/rd_svc_key.c b/src/lib/krb4/rd_svc_key.c index 2b08baea6..fa2638819 100644 --- a/src/lib/krb4/rd_svc_key.c +++ b/src/lib/krb4/rd_svc_key.c @@ -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, -- 2.26.2