commit | 855ac9bfce0cbe231c4d6bf2b1dad7269341e3ce | [log] [tgz] |
---|---|---|
author | Lukasz Nowak <lnowak@tycoint.com> | Mon Apr 24 17:05:49 2017 +0100 |
committer | Daniel Wagner <wagi@monom.org> | Mon Apr 24 21:09:38 2017 +0200 |
tree | ea3ae94e4f64c37cd46091e686ddef408f7babb8 | |
parent | 5d42327fe0eb87198b35a6b9727a3a193d0cc474 [diff] |
session: Do not set up SNAT rules without ip address If a dhcp lease is lost (expires and dhcp server does not respond) ipconfig object for an interface still exists, but addr is null. When that happens, add_nat_rules() passes a null pointer to iptables which asserts and exits the ConnMan process. Prevent that, by not enabling snat if there is no ip address.