search for: mm_log_handl

Displaying 2 results from an estimated 2 matches for "mm_log_handl".

Did you mean: mm_log_handler
2024 Feb 08
12
[Bug 3666] New: sshd crash
https://bugzilla.mindrot.org/show_bug.cgi?id=3666 Bug ID: 3666 Summary: sshd crash Product: Portable OpenSSH Version: 8.2p1 Hardware: Other OS: Linux Status: NEW Severity: critical Priority: P5 Component: sshd Assignee: unassigned-bugs at mindrot.org Reporter:
2011 Jun 02
2
preauth privsep logging via monitor
...cvs/openssh/monitor_wrap.c,v retrieving revision 1.88 diff -u -p -r1.88 monitor_wrap.c --- monitor_wrap.c 29 May 2011 11:39:38 -0000 1.88 +++ monitor_wrap.c 2 Jun 2011 03:58:14 -0000 @@ -88,6 +88,26 @@ extern struct monitor *pmonitor; extern Buffer loginmsg; extern ServerOptions options; +void +mm_log_handler(LogLevel level, const char *msg, void *ctx) +{ + Buffer log_msg; + struct monitor *mon = (struct monitor *)ctx; + + if (mon->m_log_sendfd == -1) + fatal("%s: no log channel", __func__); + + buffer_init(&log_msg); + buffer_put_int(&log_msg, 0); /* filled in with length below...