summaryrefslogtreecommitdiff
path: root/server/client.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1990-01-10 06:38:17 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1990-01-10 06:38:17 +0000
commit84ab885640f603029f21e41132beb307316b4eaa (patch)
treef2703480c9952cbf609687f55667cc4dcf460165 /server/client.c
parent3635c8011c00566b6cd082cd6ce0b95b02bdfd41 (diff)
add BADSUBPORT support
Diffstat (limited to 'server/client.c')
-rw-r--r--server/client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/client.c b/server/client.c
index d5cf630..185d059 100644
--- a/server/client.c
+++ b/server/client.c
@@ -77,6 +77,10 @@ int wantdefaults;
abort();
}
+ if (!notice->z_port) {
+ /* must be a non-zero port # */
+ return(ZSRV_BADSUBPORT);
+ }
if (!(hlp2 = hostm_find_host(&who->sin_addr))) {
/* not here */
return(ZSRV_HNOTFOUND);