summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshd.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-03-04 17:42:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-03-04 17:42:29 +0000
commite21db807bf9d4fd5a545b466f67e236b5c5be280 (patch)
tree74dfdc3c8e799010df84750c05871f935ea20111 /usr.bin/ssh/sshd.c
parent94ffc069095b37738b1b0bba2d4f37da82a2169d (diff)
log functions should not be passed strings that end in newline as they
get passed on to syslog() and when logging to stderr, do_log() appends its own newline.
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r--usr.bin/ssh/sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index affd15dae39..3c51916a346 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -40,7 +40,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.171 2001/03/04 01:46:30 djm Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.172 2001/03/04 17:42:28 millert Exp $");
#include <openssl/dh.h>
#include <openssl/bn.h>
@@ -725,7 +725,7 @@ main(int ac, char **av)
options.protocol &= ~SSH_PROTO_2;
}
if (!(options.protocol & (SSH_PROTO_1|SSH_PROTO_2))) {
- log("sshd: no hostkeys available -- exiting.\n");
+ log("sshd: no hostkeys available -- exiting.");
exit(1);
}