summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-18 10:11:15 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-18 10:11:15 +0000
commit4a4dbe2c38ceac260d45f9d5627d3e9b065b01cc (patch)
tree068c4add42275156925754ca03110f2df9fb3e91 /parse.c
parentc6b7ddd0cb671e5489b74afde82b01d7576c1e46 (diff)
downloadrsyslog-4a4dbe2c38ceac260d45f9d5627d3e9b065b01cc.tar.gz
rsyslog-4a4dbe2c38ceac260d45f9d5627d3e9b065b01cc.tar.xz
rsyslog-4a4dbe2c38ceac260d45f9d5627d3e9b065b01cc.zip
fixed a bug that could case host wildcards to become corrupted
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 900c4ef3..e24a6598 100644
--- a/parse.c
+++ b/parse.c
@@ -426,7 +426,7 @@ rsRetVal parsAddrWithBits(rsParsObj *pThis, struct NetAddr **pIP, int *pBits)
break;
case EAI_NONAME:
F_SET((*pIP)->flags, ADDR_NAME|ADDR_PRI6);
- (*pIP)->addr.HostWildcard = strdup ((const char*)pszIP);
+ (*pIP)->addr.HostWildcard = strdup ((const char*)pszIP+1);
break;
default:
free (pszIP);