diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -42,7 +42,7 @@ | |||
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include "includes.h" | 44 | #include "includes.h" |
45 | RCSID("$OpenBSD: sshd.c,v 1.256 2002/07/19 15:43:33 markus Exp $"); | 45 | RCSID("$OpenBSD: sshd.c,v 1.257 2002/07/23 16:03:10 stevesk Exp $"); |
46 | 46 | ||
47 | #include <openssl/dh.h> | 47 | #include <openssl/dh.h> |
48 | #include <openssl/bn.h> | 48 | #include <openssl/bn.h> |
@@ -911,8 +911,10 @@ main(int ac, char **av) | |||
911 | break; | 911 | break; |
912 | case 'u': | 912 | case 'u': |
913 | utmp_len = atoi(optarg); | 913 | utmp_len = atoi(optarg); |
914 | if (utmp_len < 0 || utmp_len > MAXHOSTNAMELEN) | 914 | if (utmp_len > MAXHOSTNAMELEN) { |
915 | usage(); | 915 | fprintf(stderr, "Invalid utmp length.\n"); |
916 | exit(1); | ||
917 | } | ||
916 | break; | 918 | break; |
917 | case 'o': | 919 | case 'o': |
918 | if (process_server_config_line(&options, optarg, | 920 | if (process_server_config_line(&options, optarg, |