summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-10-09 10:01:30 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-10-09 10:01:30 +0200
commit634cfdbe8ec7182b7fb74b184d269697e5fcab6c (patch)
tree189f3e7cd3a518aa2d3d2abf8225bab743ed55b6
parent39f2afc8b8a60f09570fcf288e6899cdd42209ba (diff)
downloadrsyslog-634cfdbe8ec7182b7fb74b184d269697e5fcab6c.tar.gz
rsyslog-634cfdbe8ec7182b7fb74b184d269697e5fcab6c.tar.xz
rsyslog-634cfdbe8ec7182b7fb74b184d269697e5fcab6c.zip
restoring msg parsing for imudp
I tried to work too quick this morning. A side-effect of an earlier change was that no UDP messages were parsed, which lead to their loss, because no PRI was set in this case.
-rw-r--r--plugins/imudp/imudp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c
index aab201a9..114b433c 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -207,6 +207,7 @@ processSocket(int fd, struct sockaddr_storage *frominetPrev, int *pbIsPermitted,
/* first trim the buffer to what we have actually received */
CHKmalloc(pMsg->pszRawMsg = malloc(sizeof(uchar)* lenRcvBuf));
memcpy(pMsg->pszRawMsg, pRcvBuf, lenRcvBuf);
+ pMsg->bIsParsed = 0; /* indicate message needs to be parsed */
pMsg->iLenRawMsg = lenRcvBuf;
MsgSetInputName(pMsg, "imudp");
MsgSetFlowControlType(pMsg, eFLOWCTL_NO_DELAY);