summaryrefslogtreecommitdiff
path: root/server/dispatch.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-07-27 05:31:53 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-07-27 05:31:53 +0000
commitc57cb726d8889f9bafa558698d98376485900034 (patch)
treed82fd86f62fb223faa0432691dac84bd5a424034 /server/dispatch.c
parent78adeeac1cce9d015c6cbc9bea8ac163a420caeb (diff)
Refactor ZCheckRealmAuthentication into ZCheckSrvAuthentication.
(also fiddle around with what krb4 checksums are available in krb5-only land)
Diffstat (limited to 'server/dispatch.c')
-rw-r--r--server/dispatch.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/dispatch.c b/server/dispatch.c
index 10b6296..888790e 100644
--- a/server/dispatch.c
+++ b/server/dispatch.c
@@ -214,11 +214,7 @@ handle_packet(void)
authentic = ZAUTH_YES;
} else {
realm = realm_which_realm(whence);
- if (realm) {
- authentic = ZCheckRealmAuthentication(&new_notice, whence,
- realm->name);
- } else
- authentic = ZCheckSrvAuthentication(&new_notice, whence);
+ authentic = ZCheckSrvAuthentication(&new_notice, whence, realm ? realm->name : NULL);
}
message_notices.val++;