diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-08 06:13:41 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-08 06:13:41 +0000 |
commit | a383baac4604a7de1710e87fba0403e4a56d5472 (patch) | |
tree | 62d267f992fd15d00e9382f95199b138877435b7 /cli.c | |
parent | 9ce907c3d60637943dfa46a4542164498be19ea8 (diff) |
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
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | #include "includes.h" | 1 | #include "includes.h" |
2 | RCSID("$OpenBSD: cli.c,v 1.2 2000/10/16 09:38:44 djm Exp $"); | 2 | RCSID("$OpenBSD: cli.c,v 1.4 2001/01/07 21:26:55 markus Exp $"); |
3 | 3 | ||
4 | #include "xmalloc.h" | 4 | #include "xmalloc.h" |
5 | #include "ssh.h" | 5 | #include "ssh.h" |
@@ -145,9 +145,12 @@ cli_write(char* buf, int size) | |||
145 | 145 | ||
146 | for (pos = 0; pos < len; pos += ret) { | 146 | for (pos = 0; pos < len; pos += ret) { |
147 | ret = write(cli_output, output + pos, len - pos); | 147 | ret = write(cli_output, output + pos, len - pos); |
148 | if (ret == -1) | 148 | if (ret == -1) { |
149 | xfree(output); | ||
149 | return -1; | 150 | return -1; |
151 | } | ||
150 | } | 152 | } |
153 | xfree(output); | ||
151 | return 0; | 154 | return 0; |
152 | } | 155 | } |
153 | 156 | ||