diff options
| author | Ian Dowse <iedowse@FreeBSD.org> | 2001-07-14 17:10:58 +0000 |
|---|---|---|
| committer | Ian Dowse <iedowse@FreeBSD.org> | 2001-07-14 17:10:58 +0000 |
| commit | 05c4b26e95fb24328e5458d166648c32642847c6 (patch) | |
| tree | 51c46c07e74decdb8acabcb88dd6af43e5f4094f /usr.sbin/rpcbind | |
| parent | e8418b515c4b444d3130af5adc38d4d20e12d21f (diff) | |
Notes
Diffstat (limited to 'usr.sbin/rpcbind')
| -rw-r--r-- | usr.sbin/rpcbind/security.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rpcbind/security.c b/usr.sbin/rpcbind/security.c index 8d784d6c6686..8f47f66864b1 100644 --- a/usr.sbin/rpcbind/security.c +++ b/usr.sbin/rpcbind/security.c @@ -10,6 +10,7 @@ #include <rpc/rpcb_prot.h> #include <rpc/pmap_prot.h> #include <err.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> @@ -201,7 +202,7 @@ logit(int severity, struct sockaddr *addr, rpcproc_t procnum, rpcprog_t prognum, /* Try to map procedure number to name. */ - if (procnum > (sizeof procmap / sizeof (char *))) { + if (procnum >= (sizeof procmap / sizeof (char *))) { snprintf(procbuf, sizeof procbuf, "%u", (unsigned)procnum); procname = procbuf; |
