summaryrefslogtreecommitdiff
path: root/server/dispatch.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-06-20 11:15:50 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-06-20 11:15:50 +0000
commitace689452347e0aaa04374e18dc3010e18fbf7d4 (patch)
tree94395b637356c05ff8b73c3001592f897e735016 /server/dispatch.c
parent19f824e9eb6c227c169ba5fd47e7d674c116afa8 (diff)
Semantic change from ZCheckAuthentication: -1 means kerberos failed
(and ==> unauthentic)
Diffstat (limited to 'server/dispatch.c')
-rw-r--r--server/dispatch.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/dispatch.c b/server/dispatch.c
index dc3dfb7..11e5b04 100644
--- a/server/dispatch.c
+++ b/server/dispatch.c
@@ -155,10 +155,15 @@ handle_packet()
input_sin.sin_family = AF_INET;
authentic = ZCheckAuthentication(&new_notice,
&input_sin);
+ if (authentic == -1)
+ authentic = 0; /* -1 means Kerberos check failed */
}
- else
+ else {
authentic = ZCheckAuthentication(&new_notice,
&whoisit);
+ if (authentic == -1)
+ authentic = 0;
+ }
if (whoisit.sin_port != hm_port &&
strcmp(new_notice.z_class,ZEPHYR_ADMIN_CLASS) &&
whoisit.sin_port != sock_sin.sin_port &&