summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-04-23 17:07:20 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-04-23 17:07:20 +0200
commitf949f5c037d0b22fd650ab002f195ae58b1d0989 (patch)
tree0f259da4da575bb08c1a5b84b3d6a87ab943ebb5
parentfeac49c13b36ec885f73151dea6aee4e4b439cdc (diff)
downloadrsyslog-f949f5c037d0b22fd650ab002f195ae58b1d0989.tar.gz
rsyslog-f949f5c037d0b22fd650ab002f195ae58b1d0989.tar.xz
rsyslog-f949f5c037d0b22fd650ab002f195ae58b1d0989.zip
bugfix: omudpspoof did not work correctly if no spoof hostname was configured
-rw-r--r--ChangeLog2
-rw-r--r--plugins/omudpspoof/omudpspoof.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e22967e5..0b27f276 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
---------------------------------------------------------------------------
Version 6.3.9 [DEVEL] 2012-04-??
- added the "jsonf" property replacer option (and fieldname)
+- bugfix: omudpspoof did not work correctly if no spoof hostname was
+ configured
- bugfix: property replacer option "json" could lead to content loss
message was truncated if escaping was necessary
- bugfix: assigned ruleset was lost when using disk queues
diff --git a/plugins/omudpspoof/omudpspoof.c b/plugins/omudpspoof/omudpspoof.c
index 506fca77..17b73b6d 100644
--- a/plugins/omudpspoof/omudpspoof.c
+++ b/plugins/omudpspoof/omudpspoof.c
@@ -422,7 +422,7 @@ CODE_STD_STRING_REQUESTparseSelectorAct(2)
pData->port = NULL;
else
CHKmalloc(pData->port = ustrdup(cs.pszTargetPort));
- CHKiRet(OMSRsetEntry(*ppOMSR, 1, ustrdup(cs.pszSourceNameTemplate), OMSR_NO_RQD_TPL_OPTS));
+ CHKiRet(OMSRsetEntry(*ppOMSR, 1, ustrdup(sourceTpl), OMSR_NO_RQD_TPL_OPTS));
pData->compressionLevel = cs.iCompressionLevel;
pData->sourcePort = pData->sourcePortStart = cs.iSourcePortStart;
pData->sourcePortEnd = cs.iSourcePortEnd;