diff options
author | Michael Biebl <biebl@debian.org> | 2013-03-05 17:35:26 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2013-03-05 17:35:26 +0100 |
commit | ac1a840d0afd724fa614eed5d64112a9ecf097f8 (patch) | |
tree | 29fc7cd1a00820ae3bda8e5b08e32da89c055e60 /tests | |
parent | 3793efd744861415cbb0e10df6ac9eab7b21e78e (diff) | |
download | rsyslog-ac1a840d0afd724fa614eed5d64112a9ecf097f8.tar.gz |
Imported Upstream version 7.2.6upstream/7.2.6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tcpflood.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c index 8fd347f..4a3199c 100644 --- a/tests/tcpflood.c +++ b/tests/tcpflood.c @@ -429,6 +429,8 @@ int sendMessages(struct instdata *inst) } } genMsg(buf, sizeof(buf), &lenBuf, inst); /* generate the message to send according to params */ + if(lenBuf == 0) + break; /* terminate when no message could be generated */ if(transport == TP_TCP) { if(sockArray[socknum] == -1) { /* connection was dropped, need to re-establish */ |