diff options
author | Michael Biebl <biebl@debian.org> | 2014-03-13 17:58:53 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2014-03-13 17:58:53 +0100 |
commit | f984a7a098a47b0c44f4702c9f7ca8a31a822ab5 (patch) | |
tree | a7d5e9a169a07fbd079ac6baec85d834a78c7444 /plugins/omudpspoof/omudpspoof.c | |
parent | fd3c0f95be143bd2e3eb56c277eb9a99bf93e9cc (diff) | |
parent | 29867b5cc18d25191fbbdcc4af4f79cc3a4da43e (diff) | |
download | rsyslog-f984a7a098a47b0c44f4702c9f7ca8a31a822ab5.tar.gz |
Merge tag 'upstream/7.6.1'
Upstream version 7.6.1
Diffstat (limited to 'plugins/omudpspoof/omudpspoof.c')
-rw-r--r-- | plugins/omudpspoof/omudpspoof.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/omudpspoof/omudpspoof.c b/plugins/omudpspoof/omudpspoof.c index c80f0e5..cb907bb 100644 --- a/plugins/omudpspoof/omudpspoof.c +++ b/plugins/omudpspoof/omudpspoof.c @@ -525,9 +525,6 @@ static rsRetVal doTryResume(instanceData *pData) if(pData->pSockArray != NULL) FINALIZE; - if(pData->host == NULL) - ABORT_FINALIZE(RS_RET_DISABLE_ACTION); - if(pData->libnet_handle == NULL) { /* Initialize the libnet library. Root priviledges are required. * this initializes a IPv4 socket to use for forging UDP packets. @@ -563,7 +560,7 @@ static rsRetVal doTryResume(instanceData *pData) } DBGPRINTF("%s found, resuming.\n", pData->host); pData->f_addr = res; - pData->pSockArray = net.create_udp_socket((uchar*)pData->host, NULL, 0); + pData->pSockArray = net.create_udp_socket((uchar*)pData->host, NULL, 0, 0); finalize_it: if(iRet != RS_RET_OK) { @@ -571,8 +568,7 @@ finalize_it: freeaddrinfo(pData->f_addr); pData->f_addr = NULL; } - if(iRet != RS_RET_DISABLE_ACTION) - iRet = RS_RET_SUSPENDED; + iRet = RS_RET_SUSPENDED; } RETiRet; |