From 3f78c39fd06893ddc3fe8731d50416095ebe8470 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 19 Jul 1988 15:26:17 +0000 Subject: if the authent_len is <= 0, barf. --- lib/ZCkAuth.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/ZCkAuth.c') 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, -- cgit v1.2.3