Browse Source

fix possible segfault after failed port alloc w/ iptables option

fixes #767

Change-Id: I8034849655f1c6e4e59cf341b0ff99066223fcbc
changes/68/29568/1
Richard Fuchs 7 years ago
parent
commit
985cd44c2b
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      daemon/iptables.c

+ 3
- 0
daemon/iptables.c View File

@ -286,6 +286,9 @@ static int __iptables_add_rule(const socket_t *local_sock, const str *comment) {
static int __iptables_del_rule(const socket_t *local_sock) {
const char *err;
if (!local_sock || !local_sock->family)
return 0;
switch (local_sock->family->af) {
case AF_INET:
err = ip4tables_del_rule(local_sock);


Loading…
Cancel
Save