diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2001-03-19 12:50:13 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2001-03-19 12:50:13 +0000 |
commit | 8360efbd6c932013ffdb2f83d2f2de4278febb5e (patch) | |
tree | b842b4bf2665ef953be005b10013a2f3daf323c3 /lib/libc/rpc/svc_auth_des.c | |
parent | 1ac2b9fe972a0c73729565f8310fa6eba55718c4 (diff) | |
download | src-test2-8360efbd6c932013ffdb2f83d2f2de4278febb5e.tar.gz src-test2-8360efbd6c932013ffdb2f83d2f2de4278febb5e.zip |
Notes
Diffstat (limited to 'lib/libc/rpc/svc_auth_des.c')
-rw-r--r-- | lib/libc/rpc/svc_auth_des.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/rpc/svc_auth_des.c b/lib/libc/rpc/svc_auth_des.c index f3af780f1683..0d363c132bac 100644 --- a/lib/libc/rpc/svc_auth_des.c +++ b/lib/libc/rpc/svc_auth_des.c @@ -46,6 +46,8 @@ * */ +#include "reentrant.h" +#include "namespace.h" #include <string.h> #include <stdlib.h> #include <stdio.h> @@ -60,6 +62,7 @@ #include <rpc/svc.h> #include <rpc/rpc_msg.h> #include <rpc/svc_auth.h> +#include "libc_private.h" #if defined(LIBC_SCCS) && !defined(lint) /* from: static char sccsid[] = "@(#)svcauth_des.c 2.3 89/07/11 4.0 RPCSRC; from 1.15 88/02/08 SMI"; */ @@ -190,7 +193,7 @@ _svcauth_des(rqst, msg) } } else { /* ADN_NICKNAME */ sid = (short)cred->adc_nickname; - if (sid >= AUTHDES_CACHESZ) { + if (sid < 0 || sid >= AUTHDES_CACHESZ) { debug("bad nickname"); return (AUTH_BADCRED); /* garbled credential */ } |