summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-07-04 00:10:34 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-07-04 00:10:34 +0000
commitfbbfa8422f8317bcac829e1673dced62f49d59ba (patch)
tree9484c121bc8d93e492d8307f2572951c55fb83cf /sshd.c
parentb1bdc5a6adae8f5e4d4a4f67c5aba488b5993d5e (diff)
- deraadt@cvs.openbsd.org 2002/06/28 10:08:25
[sshd.c] range check -u option at invocation
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index d2524c4bc..21db6d5cf 100644
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
42 */ 42 */
43 43
44#include "includes.h" 44#include "includes.h"
45RCSID("$OpenBSD: sshd.c,v 1.251 2002/06/25 18:51:04 markus Exp $"); 45RCSID("$OpenBSD: sshd.c,v 1.252 2002/06/28 10:08:25 deraadt Exp $");
46 46
47#include <openssl/dh.h> 47#include <openssl/dh.h>
48#include <openssl/bn.h> 48#include <openssl/bn.h>
@@ -906,6 +906,8 @@ main(int ac, char **av)
906 break; 906 break;
907 case 'u': 907 case 'u':
908 utmp_len = atoi(optarg); 908 utmp_len = atoi(optarg);
909 if (utmp_len < 0 || utmp_len > MAXHOSTNAMELEN)
910 usage();
909 break; 911 break;
910 case 'o': 912 case 'o':
911 if (process_server_config_line(&options, optarg, 913 if (process_server_config_line(&options, optarg,