mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 17:20:42 +01:00
fixed a bug that could case host wildcards to become corrupted
This commit is contained in:
parent
c6b7ddd0cb
commit
4a4dbe2c38
2
parse.c
2
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user