From a383baac4604a7de1710e87fba0403e4a56d5472 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Mon, 8 Jan 2001 06:13:41 +0000 Subject: 20010108 - (bal) Fixed another typo in cli.c - (bal) OpenBSD Sync - markus@cvs.openbsd.org 2001/01/07 21:26:55 [cli.c] typo - markus@cvs.openbsd.org 2001/01/07 21:26:55 [cli.c] missing free, stevesk@pobox.com - markus@cvs.openbsd.org 2001/01/07 19:06:25 [auth1.c] missing free, stevesk@pobox.com - markus@cvs.openbsd.org 2001/01/07 11:28:04 [log-client.c log-server.c log.c readconf.c servconf.c ssh.1 ssh.h sshd.8 sshd.c] rename SYSLOG_LEVEL_INFO->SYSLOG_LEVEL_NOTICE syslog priority changes: fatal() LOG_ERR -> LOG_CRIT log() LOG_INFO -> LOG_NOTICE --- cli.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cli.c') diff --git a/cli.c b/cli.c index 27d0d9e18..d2ef174c6 100644 --- a/cli.c +++ b/cli.c @@ -1,5 +1,5 @@ #include "includes.h" -RCSID("$OpenBSD: cli.c,v 1.2 2000/10/16 09:38:44 djm Exp $"); +RCSID("$OpenBSD: cli.c,v 1.4 2001/01/07 21:26:55 markus Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -145,9 +145,12 @@ cli_write(char* buf, int size) for (pos = 0; pos < len; pos += ret) { ret = write(cli_output, output + pos, len - pos); - if (ret == -1) + if (ret == -1) { + xfree(output); return -1; + } } + xfree(output); return 0; } -- cgit v1.2.3