diff options
Diffstat (limited to 'server/dispatch.c')
-rw-r--r-- | server/dispatch.c | 6 |
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++; |