diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-09 16:39:08 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-09 16:39:08 +0100 |
commit | f993008207811affe8fc52800e408bea241e78e3 (patch) | |
tree | dd7834fd5d55966619c8ea0286b1fd03d54a1c29 | |
parent | 9601b181cf5d2166e2c813973e82a4b48002e83f (diff) | |
download | rsyslog-f993008207811affe8fc52800e408bea241e78e3.tar.gz rsyslog-f993008207811affe8fc52800e408bea241e78e3.tar.xz rsyslog-f993008207811affe8fc52800e408bea241e78e3.zip |
bugfix: imudp: only two listeners were activated
no matter how many were defined. Note that IPv4 and IPv6 count as two!
-rw-r--r-- | plugins/imudp/imudp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c index 0db6bf9a..112738b4 100644 --- a/plugins/imudp/imudp.c +++ b/plugins/imudp/imudp.c @@ -244,8 +244,10 @@ static rsRetVal addListner(void __attribute__((unused)) *pVal, uchar *pNewVal) lcnfRoot = newlcnfinfo; if(lcnfLast == NULL) lcnfLast = newlcnfinfo; - else + else { lcnfLast->next = newlcnfinfo; + lcnfLast = newlcnfinfo; + } } } |