summaryrefslogtreecommitdiff
path: root/server/kstuff.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-08-10 21:09:49 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-08-10 21:09:49 +0000
commite87a188ae0775b248e7d6a9a7b29117363369227 (patch)
treee03216537fc4d221845f90748697eb56dd6ea6fb /server/kstuff.c
parent973371c344572b124f13d10d0726e4c28fa3fba0 (diff)
ZCheckSrvAuthentication says "YES", "NO", or "FAILED"
Diffstat (limited to 'server/kstuff.c')
-rw-r--r--server/kstuff.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/kstuff.c b/server/kstuff.c
index 3677a80..65f08ca 100644
--- a/server/kstuff.c
+++ b/server/kstuff.c
@@ -313,7 +313,7 @@ ZCheckSrvAuthentication(ZNotice_t *notice,
keytab_file, &keytabid);
if (result) {
free(authbuf);
- return (result);
+ return ZAUTH_FAILED;
}
/* HOLDING: authbuf, keytabid */
@@ -322,14 +322,14 @@ ZCheckSrvAuthentication(ZNotice_t *notice,
if (result) {
krb5_kt_close(Z_krb5_ctx, keytabid);
free(authbuf);
- return (result);
+ return ZAUTH_FAILED;
}
result = krb5_auth_con_getflags(Z_krb5_ctx, authctx, &acflags);
if (result) {
krb5_kt_close(Z_krb5_ctx, keytabid);
free(authbuf);
- return (result);
+ return ZAUTH_FAILED;
}
acflags &= ~KRB5_AUTH_CONTEXT_DO_TIME;
@@ -338,7 +338,7 @@ ZCheckSrvAuthentication(ZNotice_t *notice,
if (result) {
krb5_kt_close(Z_krb5_ctx, keytabid);
free(authbuf);
- return (result);
+ return ZAUTH_FAILED;
}
/* HOLDING: authbuf, authctx */
@@ -414,7 +414,7 @@ ZCheckSrvAuthentication(ZNotice_t *notice,
&authenticator);
if(result) {
krb5_auth_con_free(Z_krb5_ctx, authctx);
- return result;
+ return ZAUTH_FAILED;
}
/* HOLDING: authctx, authenticator */