summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshconnect.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-03-04 17:42:27 +0000
committermillert <millert@openbsd.org>2001-03-04 17:42:27 +0000
commit1b49324a9139e7dd36399913557482a3fb760af8 (patch)
tree0a56f331f9ad9660d5661b42bf8d5fd9c22cd23a /usr.bin/ssh/sshconnect.c
parentavoid possible align issue. sync with kame (diff)
downloadwireguard-openbsd-1b49324a9139e7dd36399913557482a3fb760af8.tar.xz
wireguard-openbsd-1b49324a9139e7dd36399913557482a3fb760af8.zip
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/sshconnect.c')
-rw-r--r--usr.bin/ssh/sshconnect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index b068d0bc6cb..2534743a534 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -13,7 +13,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect.c,v 1.97 2001/02/15 23:19:59 markus Exp $");
+RCSID("$OpenBSD: sshconnect.c,v 1.98 2001/03/04 17:42:28 millert Exp $");
#include <openssl/bn.h>
@@ -610,7 +610,7 @@ check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key,
"Are you sure you want to continue connecting (yes/no)? ",
host, ip, type, key_fingerprint(host_key));
if (!read_yes_or_no(prompt, -1))
- fatal("Aborted by user!\n");
+ fatal("Aborted by user!");
}
if (options.check_host_ip && ip_status == HOST_NEW) {
snprintf(hostline, sizeof(hostline), "%s,%s", host, ip);
@@ -711,7 +711,7 @@ check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key,
} else if (options.strict_host_key_checking == 2) {
if (!read_yes_or_no("Are you sure you want " \
"to continue connecting (yes/no)? ", -1))
- fatal("Aborted by user!\n");
+ fatal("Aborted by user!");
}
}