forecast: Compare the complete rules when deleting them
Same as the change in the connmark plugin. References #1229.
This commit is contained in:
@@ -160,7 +160,10 @@ static bool manage_rule(struct iptc_handle *ipth, const char *chain,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!iptc_delete_entry(chain, e, "", ipth))
|
u_char matchmask[e->next_offset];
|
||||||
|
|
||||||
|
memset(matchmask, 255, sizeof(matchmask));
|
||||||
|
if (!iptc_delete_entry(chain, e, matchmask, ipth))
|
||||||
{
|
{
|
||||||
DBG1(DBG_CFG, "deleting %s rule failed: %s",
|
DBG1(DBG_CFG, "deleting %s rule failed: %s",
|
||||||
chain, iptc_strerror(errno));
|
chain, iptc_strerror(errno));
|
||||||
|
|||||||
Reference in New Issue
Block a user