From 69152291e7dd83db673a85aba6a6f8d265f1871b Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sun, 3 Apr 2005 12:44:23 +1000 Subject: [PATCH] - (dtucker) [monitor.c] Don't free buffers in audit functions, monitor_read will free as needed. ok tim@ djm@ --- ChangeLog | 4 +++- monitor.c | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 40b5c8b6c..185306576 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ [scp.c] since ssh has xstrdup, use it instead of strdup+test. unbreaks -Werror build + - (dtucker) [monitor.c] Don't free buffers in audit functions, monitor_read + will free as needed. ok tim@ djm@ 20050331 - (dtucker) OpenBSD CVS Sync @@ -2418,4 +2420,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3736 2005/04/03 00:16:39 djm Exp $ +$Id: ChangeLog,v 1.3737 2005/04/03 02:44:23 dtucker Exp $ diff --git a/monitor.c b/monitor.c index c6a42e709..9dca9c803 100644 --- a/monitor.c +++ b/monitor.c @@ -1525,7 +1525,6 @@ mm_answer_audit_event(int socket, Buffer *m) debug3("%s entering", __func__); event = buffer_get_int(m); - buffer_free(m); switch(event) { case SSH_AUTH_FAIL_PUBKEY: case SSH_AUTH_FAIL_HOSTBASED: @@ -1554,7 +1553,6 @@ mm_answer_audit_command(int socket, Buffer *m) /* sanity check command, if so how? */ audit_run_command(cmd); xfree(cmd); - buffer_free(m); return (0); } #endif /* SSH_AUDIT_EVENTS */