• Jussi Laakkonen's avatar
    [connman] Fix firewall failsafe. Empty config is not error. Fixes JB#45308 · 25b654eb
    Jussi Laakkonen authored
    This commit fixes the firewall failsafe operation. The hash tables
    containing entries retrieved from iptables should not be freed within
    the same session where iptables is used. This seems to create more
    problems it helps to solve. In some cases the pointers to free'd content
    is returned by iptables when failsafe has triggered causing
    non-continuous entrytables with invalid offsets.
    
    Also, do not treat empty or missing firewall config as error triggering
    firewall failsafe. No config = no changes.
    25b654eb
firewall.c 65.4 KB