]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- deraadt@cvs.openbsd.org 2002/06/28 10:08:25
authorBen Lindstrom <mouring@eviladmin.org>
Thu, 4 Jul 2002 00:10:34 +0000 (00:10 +0000)
committerBen Lindstrom <mouring@eviladmin.org>
Thu, 4 Jul 2002 00:10:34 +0000 (00:10 +0000)
     [sshd.c]
     range check -u option at invocation

ChangeLog
sshd.c

index 4b093dae76b5dfbd4e982abf548f1080189fa5ae..cad81cab62a66e44a962914af1eb9326c5eee25b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,9 @@
    - deraadt@cvs.openbsd.org 2002/06/28 01:50:37
      [monitor_wrap.c]
      use ssize_t
+   - deraadt@cvs.openbsd.org 2002/06/28 10:08:25
+     [sshd.c]
+     range check -u option at invocation
 
 20020702
  - (djm) Use PAM_MSG_MEMBER for PAM_TEXT_INFO messages, use xmalloc & 
  - (stevesk) entropy.c: typo in debug message
  - (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 $
diff --git a/sshd.c b/sshd.c
index d2524c4bc2128d15fd22e7208d61b5918bac6633..21db6d5cffca0300eb27fa2e417cc731862b15de 100644 (file)
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
  */
 
 #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/bn.h>
@@ -906,6 +906,8 @@ main(int ac, char **av)
                        break;
                case 'u':
                        utmp_len = atoi(optarg);
+                       if (utmp_len < 0 || utmp_len > MAXHOSTNAMELEN)
+                               usage();
                        break;
                case 'o':
                        if (process_server_config_line(&options, optarg,