summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-07-19 19:54:31 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-07-19 19:54:31 +1000
commite98dfa323e7f7dc57afb70f99851a596f3194047 (patch)
treecc72d5d819b1079a22254feb483bdf41dd492122 /sshd.c
parentfe0078ae492ab0c020fa6ee5bccd8d08ca5f47a6 (diff)
- markus@cvs.openbsd.org 2003/07/16 10:34:53
[ssh.c sshd.c] don't exit on multiple -v or -d; ok deraadt@
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sshd.c b/sshd.c
index e3748da7d..a8cb966b0 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.272 2003/07/14 12:36:37 markus Exp $"); 45RCSID("$OpenBSD: sshd.c,v 1.273 2003/07/16 10:34:53 markus Exp $");
46 46
47#include <openssl/dh.h> 47#include <openssl/dh.h>
48#include <openssl/bn.h> 48#include <openssl/bn.h>
@@ -851,15 +851,11 @@ main(int ac, char **av)
851 config_file_name = optarg; 851 config_file_name = optarg;
852 break; 852 break;
853 case 'd': 853 case 'd':
854 if (0 == debug_flag) { 854 if (debug_flag == 0) {
855 debug_flag = 1; 855 debug_flag = 1;
856 options.log_level = SYSLOG_LEVEL_DEBUG1; 856 options.log_level = SYSLOG_LEVEL_DEBUG1;
857 } else if (options.log_level < SYSLOG_LEVEL_DEBUG3) { 857 } else if (options.log_level < SYSLOG_LEVEL_DEBUG3)
858 options.log_level++; 858 options.log_level++;
859 } else {
860 fprintf(stderr, "Too high debugging level.\n");
861 exit(1);
862 }
863 break; 859 break;
864 case 'D': 860 case 'D':
865 no_daemon_flag = 1; 861 no_daemon_flag = 1;