summaryrefslogtreecommitdiff
path: root/lib/ZCkAuth.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-07-19 15:26:17 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-07-19 15:26:17 +0000
commit3f78c39fd06893ddc3fe8731d50416095ebe8470 (patch)
tree09e18d05f060686c47ced703ae8e0662e254ad50 /lib/ZCkAuth.c
parentc900261ee02febf0e44d0fd48d9b5bd1d5736f85 (diff)
if the authent_len is <= 0, barf.
Diffstat (limited to 'lib/ZCkAuth.c')
-rw-r--r--lib/ZCkAuth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ZCkAuth.c b/lib/ZCkAuth.c
index 6d0cdb2..2c53325 100644
--- a/lib/ZCkAuth.c
+++ b/lib/ZCkAuth.c
@@ -42,6 +42,9 @@ int ZCheckAuthentication(notice, from)
if (!notice->z_auth)
return (ZAUTH_NO);
+ if (notice->z_authent_len <= 0) /* bogus length */
+ return(ZAUTH_FAILED);
+
if (__Zephyr_server) {
if (ZReadAscii(notice->z_ascii_authent,
strlen(notice->z_ascii_authent)+1,