diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-10 22:36:40 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-10 22:36:40 +0100 |
commit | 59192611db992e7357337beb8e68ec6cee5b3fec (patch) | |
tree | e3f46ed076100398b4e66b9919a00005df09dc4b /plugins | |
parent | 42db7de5968d2db0fa855a9f029f6bccc0a30650 (diff) | |
download | rsyslog-59192611db992e7357337beb8e68ec6cee5b3fec.tar.gz rsyslog-59192611db992e7357337beb8e68ec6cee5b3fec.tar.xz rsyslog-59192611db992e7357337beb8e68ec6cee5b3fec.zip |
bugfix: parser did not correctly parse fields in UDP-received messages
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/imudp/imudp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c index 72450513..c7e8c1d4 100644 --- a/plugins/imudp/imudp.c +++ b/plugins/imudp/imudp.c @@ -181,7 +181,6 @@ processSocket(int fd, struct sockaddr_storage *frominetPrev, int *pbIsPermitted, /* check if we have a different sender than before, if so, we need to query some new values */ if(memcmp(&frominet, frominetPrev, socklen) != 0) { CHKiRet(net.cvthname(&frominet, fromHost, fromHostFQDN, fromHostIP)); -DBGPRINTF("returned: fromHost '%s', FQDN: '%s'\n", fromHost, fromHostFQDN); memcpy(frominetPrev, &frominet, socklen); /* update cache indicator */ /* Here we check if a host is permitted to send us * syslog messages. If it isn't, we do not further @@ -223,6 +222,7 @@ DBGPRINTF("returned: fromHost '%s', FQDN: '%s'\n", fromHost, fromHostFQDN); MsgSetInputName(pMsg, "imudp"); MsgSetFlowControlType(pMsg, eFLOWCTL_NO_DELAY); pMsg->msgFlags = NEEDS_PARSING | PARSE_HOSTNAME; + pMsg->bParseHOSTNAME = 1; MsgSetRcvFrom(pMsg, (char*)fromHost); CHKiRet(MsgSetRcvFromIP(pMsg, fromHostIP)); CHKiRet(submitMsg(pMsg)); |