summaryrefslogtreecommitdiff
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
parentb1bdc5a6adae8f5e4d4a4f67c5aba488b5993d5e (diff)
- deraadt@cvs.openbsd.org 2002/06/28 10:08:25
[sshd.c] range check -u option at invocation
-rw-r--r--ChangeLog5
-rw-r--r--sshd.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4b093dae7..cad81cab6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,9 @@
24 - deraadt@cvs.openbsd.org 2002/06/28 01:50:37 24 - deraadt@cvs.openbsd.org 2002/06/28 01:50:37
25 [monitor_wrap.c] 25 [monitor_wrap.c]
26 use ssize_t 26 use ssize_t
27 - deraadt@cvs.openbsd.org 2002/06/28 10:08:25
28 [sshd.c]
29 range check -u option at invocation
27 30
2820020702 3120020702
29 - (djm) Use PAM_MSG_MEMBER for PAM_TEXT_INFO messages, use xmalloc & 32 - (djm) Use PAM_MSG_MEMBER for PAM_TEXT_INFO messages, use xmalloc &
@@ -1232,4 +1235,4 @@
1232 - (stevesk) entropy.c: typo in debug message 1235 - (stevesk) entropy.c: typo in debug message
1233 - (djm) ssh-keygen -i needs seeded RNG; report from markus@ 1236 - (djm) ssh-keygen -i needs seeded RNG; report from markus@
1234 1237
1235$Id: ChangeLog,v 1.2321 2002/07/04 00:09:26 mouring Exp $ 1238$Id: ChangeLog,v 1.2322 2002/07/04 00:10:34 mouring Exp $
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,