forecast: Compare the complete rules when deleting them

Same as the change in the connmark plugin.

References #1229.
This commit is contained in:
Tobias Brunner
2016-03-10 17:26:38 +01:00
parent c659d369a0
commit 7d22a75b12
@@ -160,7 +160,10 @@ static bool manage_rule(struct iptc_handle *ipth, const char *chain,
}
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",
chain, iptc_strerror(errno));