diff options
author | John Kohl <jtkohl@mit.edu> | 1988-06-28 14:44:08 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-06-28 14:44:08 +0000 |
commit | 76a51e273b33913760a063b8e77a4256075c8d77 (patch) | |
tree | f3001908073b5e8472b04346fedfc257c3aeddb0 /server/dispatch.c | |
parent | 8d4c68242353d0acdeddebb2ca4278b0069dc1d4 (diff) |
fix broken switch statement
Diffstat (limited to 'server/dispatch.c')
-rw-r--r-- | server/dispatch.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/dispatch.c b/server/dispatch.c index 5f653a5..e59fed2 100644 --- a/server/dispatch.c +++ b/server/dispatch.c @@ -161,12 +161,14 @@ handle_packet() authentic = ZCheckAuthentication(&new_notice, &whoisit); switch (authentic) { - ZAUTH_FAILED: - ZAUTH_NO: + case ZAUTH_YES: + authentic = 1; + break; + case ZAUTH_FAILED: + case ZAUTH_NO: + default: authentic = 0; break; - ZAUTH_YES: - authentic = 1; } if (whoisit.sin_port != hm_port && strcmp(new_notice.z_class,ZEPHYR_ADMIN_CLASS) && |