diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-01-16 18:10:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-01-16 18:10:32 +0000 |
commit | 0ccb97d6eaa277737d8e09c023fe590f9b5fed2a (patch) | |
tree | 53fd42b16326965772dc196eb1dd6523421036ae /lib/libc/net | |
parent | 4f066bb63a3ae9a5d561986071abd505ce8663e6 (diff) |
Replace check for ">= HOST_NAME_MAX+1" with "> HOST_NAME_MAX".
OK deraadt@
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/ruserok.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/ruserok.c b/lib/libc/net/ruserok.c index fed55e031d0..eed76d97db2 100644 --- a/lib/libc/net/ruserok.c +++ b/lib/libc/net/ruserok.c @@ -245,7 +245,7 @@ __ivaliduser_sa(FILE *hostf, struct sockaddr *raddr, socklen_t salen, auser = *user ? user : luser; ahost = buf; - if (strlen(ahost) >= HOST_NAME_MAX+1) + if (strlen(ahost) > HOST_NAME_MAX) continue; /* |