diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2020-10-18 11:22:00 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2020-10-18 11:22:00 +0000 |
commit | 76ac85c3c0818c9e092206a0e616a35f30f07885 (patch) | |
tree | f127713f7a5c3dd0918fa2739f6400bdcebcaffb /usr.bin/ssh/monitor.c | |
parent | 20c45c431db010b6e914d1e4f0ba02c22e4b390c (diff) |
variants of the log methods that append a ssherr.h string from
a supplied error code; ok markus@
Diffstat (limited to 'usr.bin/ssh/monitor.c')
-rw-r--r-- | usr.bin/ssh/monitor.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ssh/monitor.c b/usr.bin/ssh/monitor.c index 85125f3ff60..a298834fcf0 100644 --- a/usr.bin/ssh/monitor.c +++ b/usr.bin/ssh/monitor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monitor.c,v 1.215 2020/10/16 13:24:45 djm Exp $ */ +/* $OpenBSD: monitor.c,v 1.216 2020/10/18 11:21:59 djm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * Copyright 2002 Markus Friedl <markus@openbsd.org> @@ -395,9 +395,8 @@ monitor_read_log(struct monitor *pmonitor) /* Log it */ if (log_level_name(level) == NULL) - fatal("%s: invalid log level %u (corrupted message?)", - __func__, level); - sshlog(file, func, line, 0, level, "%s [preauth]", msg); + fatal_f("invalid log level %u (corrupted message?)", level); + sshlog(file, func, line, 0, level, NULL, "%s [preauth]", msg); sshbuf_free(logmsg); free(file); |