diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-06 12:26:57 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-11-06 12:26:57 +0100 |
commit | 4e04480206a6abae249f890e07fdecf380348c74 (patch) | |
tree | 56977205df5dcad0b31d528a7f264a373420eb7c | |
parent | 512b98d18a336292a2939ee5375f20e437d3dcf9 (diff) | |
download | rsyslog-4e04480206a6abae249f890e07fdecf380348c74.tar.gz rsyslog-4e04480206a6abae249f890e07fdecf380348c74.tar.bz2 rsyslog-4e04480206a6abae249f890e07fdecf380348c74.zip |
omudpspoof: cleanup code that could never execute
-rw-r--r-- | plugins/omudpspoof/omudpspoof.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/omudpspoof/omudpspoof.c b/plugins/omudpspoof/omudpspoof.c index 058c4252..cb907bba 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. @@ -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; |