diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2006-10-31 14:12:11 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2006-10-31 14:12:11 +0000 |
commit | b52aed73f2661b7b698dedfda3f75e90f18d15a2 (patch) | |
tree | 42ff262d7a3d00a4f61c266f4342174b21227bc0 /syslogd.c | |
parent | 8c8ce543049a1f18cbd1fa16c8852422f2a04891 (diff) | |
download | rsyslog-b52aed73f2661b7b698dedfda3f75e90f18d15a2.tar.gz rsyslog-b52aed73f2661b7b698dedfda3f75e90f18d15a2.tar.bz2 rsyslog-b52aed73f2661b7b698dedfda3f75e90f18d15a2.zip |
fixed a bug in tcp retry code
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1621,10 +1621,11 @@ static int TCPSend(struct filed *f, char *msg) close(f->f_file); TCPSendSetStatus(f, TCP_SEND_NOTCONNECTED); f->f_file = -1; - } else + } else { if(buf != NULL) free(buf); return -1; + } } while(!done); /* warning: do ... while() */ /*NOT REACHED*/ |