diff options
Diffstat (limited to 'server/dispatch.c')
-rw-r--r-- | server/dispatch.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/server/dispatch.c b/server/dispatch.c index ece4ff8..12f9c04 100644 --- a/server/dispatch.c +++ b/server/dispatch.c @@ -243,20 +243,7 @@ dispatch(notice, auth, who, from_server) char dbg_buf[BUFSIZ]; #endif - /* Set "authflag" to 1 or 0 for handler functions. Treat - * ZAUTH_CKSUM_FAILED as authentic except for sendit(), which is - * handled below. */ - switch (auth) { - case ZAUTH_YES: - case ZAUTH_CKSUM_FAILED: - authflag = 1; - break; - case ZAUTH_FAILED: - case ZAUTH_NO: - default: - authflag = 0; - break; - } + authflag = (auth == ZAUTH_YES); if ((int) notice->z_kind < (int) UNSAFE || (int) notice->z_kind > (int) CLIENTACK) { @@ -311,8 +298,6 @@ dispatch(notice, auth, who, from_server) admin_notices.val++; status = server_adispatch(notice, authflag, who, me_server); } else { - if (auth == ZAUTH_CKSUM_FAILED) - authflag = 0; if (!bound_for_local_realm(notice)) { cp = strchr(notice->z_recipient, '@'); if (!cp || |