diff options
author | John Kohl <jtkohl@mit.edu> | 1988-07-19 15:26:17 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-07-19 15:26:17 +0000 |
commit | 3f78c39fd06893ddc3fe8731d50416095ebe8470 (patch) | |
tree | 09e18d05f060686c47ced703ae8e0662e254ad50 /lib/ZCkAuth.c | |
parent | c900261ee02febf0e44d0fd48d9b5bd1d5736f85 (diff) |
if the authent_len is <= 0, barf.
Diffstat (limited to 'lib/ZCkAuth.c')
-rw-r--r-- | lib/ZCkAuth.c | 3 |
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, |