[sshd.c]
     range check -u option at invocation
This commit is contained in:
Ben Lindstrom 2002-07-04 00:10:34 +00:00
parent b1bdc5a6ad
commit fbbfa8422f
2 changed files with 7 additions and 2 deletions

View File

@ -24,6 +24,9 @@
- deraadt@cvs.openbsd.org 2002/06/28 01:50:37 - deraadt@cvs.openbsd.org 2002/06/28 01:50:37
[monitor_wrap.c] [monitor_wrap.c]
use ssize_t use ssize_t
- deraadt@cvs.openbsd.org 2002/06/28 10:08:25
[sshd.c]
range check -u option at invocation
20020702 20020702
- (djm) Use PAM_MSG_MEMBER for PAM_TEXT_INFO messages, use xmalloc & - (djm) Use PAM_MSG_MEMBER for PAM_TEXT_INFO messages, use xmalloc &
@ -1232,4 +1235,4 @@
- (stevesk) entropy.c: typo in debug message - (stevesk) entropy.c: typo in debug message
- (djm) ssh-keygen -i needs seeded RNG; report from markus@ - (djm) ssh-keygen -i needs seeded RNG; report from markus@
$Id: ChangeLog,v 1.2321 2002/07/04 00:09:26 mouring Exp $ $Id: ChangeLog,v 1.2322 2002/07/04 00:10:34 mouring Exp $

4
sshd.c
View File

@ -42,7 +42,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: sshd.c,v 1.251 2002/06/25 18:51:04 markus Exp $"); RCSID("$OpenBSD: sshd.c,v 1.252 2002/06/28 10:08:25 deraadt Exp $");
#include <openssl/dh.h> #include <openssl/dh.h>
#include <openssl/bn.h> #include <openssl/bn.h>
@ -906,6 +906,8 @@ main(int ac, char **av)
break; break;
case 'u': case 'u':
utmp_len = atoi(optarg); utmp_len = atoi(optarg);
if (utmp_len < 0 || utmp_len > MAXHOSTNAMELEN)
usage();
break; break;
case 'o': case 'o':
if (process_server_config_line(&options, optarg, if (process_server_config_line(&options, optarg,