- (dtucker) [monitor.c] Don't free buffers in audit functions, monitor_read

will free as needed.  ok tim@ djm@
This commit is contained in:
Darren Tucker 2005-04-03 12:44:23 +10:00
parent 4942de5719
commit 69152291e7
2 changed files with 3 additions and 3 deletions

View File

@ -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 $

View File

@ -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 */