summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-07-23 21:15:13 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-07-23 21:15:13 +0000
commit41daec7538e7887dc540fdd56afbd21e3c42133e (patch)
tree97e54f2f2f3c8a7014bf7958915b8bce97a856f0 /sshd.c
parent7cea16bad574cbe60d22204df2e215ab1c8ce9e9 (diff)
- stevesk@cvs.openbsd.org 2002/07/23 16:03:10
[sshd.c] utmp_len is unsigned; display error consistent with other options. ok markus@
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sshd.c b/sshd.c
index 427ca3545..55c57e195 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.256 2002/07/19 15:43:33 markus Exp $"); 45RCSID("$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,