From c57cb726d8889f9bafa558698d98376485900034 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 27 Jul 2009 05:31:53 +0000 Subject: Refactor ZCheckRealmAuthentication into ZCheckSrvAuthentication. (also fiddle around with what krb4 checksums are available in krb5-only land) --- server/dispatch.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'server/dispatch.c') 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++; -- cgit v1.2.3