summaryrefslogtreecommitdiffstats
path: root/plugins/imudp/imudp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-09-04 15:30:15 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-09-04 15:30:15 +0200
commitc23c4c0a384fc10e9e2d2a506b40cc2dac7eb6c1 (patch)
tree261f6e04eba1d8c74816dd45ed2f4f2f859b4498 /plugins/imudp/imudp.c
parent3fd7de85e18a5aee938de47823fcd96a830b95f7 (diff)
parentf4156b878f5e29d13bc4d98b78a7063008c6ad2b (diff)
downloadrsyslog-c23c4c0a384fc10e9e2d2a506b40cc2dac7eb6c1.tar.gz
rsyslog-c23c4c0a384fc10e9e2d2a506b40cc2dac7eb6c1.tar.bz2
rsyslog-c23c4c0a384fc10e9e2d2a506b40cc2dac7eb6c1.zip
Merge branch 'master' into java
Conflicts: ChangeLog
Diffstat (limited to 'plugins/imudp/imudp.c')
-rw-r--r--plugins/imudp/imudp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c
index ea41e4f6..0a8920f5 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -210,7 +210,7 @@ processSocket(int fd, struct sockaddr_storage *frominetPrev, int *pbIsPermitted,
/* if we reach this point, we had a good receive and can process the packet received */
/* check if we have a different sender than before, if so, we need to query some new values */
- if(memcmp(&frominet, frominetPrev, socklen) != 0) {
+ if(net.CmpHost(&frominet, frominetPrev, socklen) != 0) {
CHKiRet(net.cvthname(&frominet, fromHost, fromHostFQDN, fromHostIP));
memcpy(frominetPrev, &frominet, socklen); /* update cache indicator */
/* Here we check if a host is permitted to send us