Lines 415-425
delete_redirect_and_filter_rules(unsigne
Link Here
|
415 |
if(h) |
415 |
if(h) |
416 |
{ |
416 |
{ |
417 |
r = delete_rule_and_commit(index, h, miniupnpd_nat_chain, "delete_redirect_rule"); |
417 |
r = delete_rule_and_commit(index, h, miniupnpd_nat_chain, "delete_redirect_rule"); |
|
|
418 |
#ifdef IPTABLES_143 |
419 |
iptc_free(h); |
420 |
#else |
421 |
iptc_free(&h); |
422 |
#endif |
418 |
} |
423 |
} |
419 |
h = iptc_init("filter"); |
424 |
h = iptc_init("filter"); |
420 |
if(h && (r == 0)) |
425 |
if(h && (r == 0)) |
421 |
{ |
426 |
{ |
422 |
r = delete_rule_and_commit(index, h, miniupnpd_forward_chain, "delete_filter_rule"); |
427 |
r = delete_rule_and_commit(index, h, miniupnpd_forward_chain, "delete_filter_rule"); |
|
|
428 |
#ifdef IPTABLES_143 |
429 |
iptc_free(h); |
430 |
#else |
431 |
iptc_free(&h); |
432 |
#endif |
423 |
} |
433 |
} |
424 |
} |
434 |
} |
425 |
del_redirect_desc(eport, proto); |
435 |
del_redirect_desc(eport, proto); |
Lines 509-514
iptc_init_verify_and_append(const char *
Link Here
|
509 |
{ |
519 |
{ |
510 |
syslog(LOG_ERR, "%s : iptc_is_chain() error : %s\n", |
520 |
syslog(LOG_ERR, "%s : iptc_is_chain() error : %s\n", |
511 |
logcaller, iptc_strerror(errno)); |
521 |
logcaller, iptc_strerror(errno)); |
|
|
522 |
#ifdef IPTABLES_143 |
523 |
iptc_free(h); |
524 |
#else |
525 |
iptc_free(&h); |
526 |
#endif |
512 |
return -1; |
527 |
return -1; |
513 |
} |
528 |
} |
514 |
#ifdef IPTABLES_143 |
529 |
#ifdef IPTABLES_143 |
Lines 519-524
iptc_init_verify_and_append(const char *
Link Here
|
519 |
{ |
534 |
{ |
520 |
syslog(LOG_ERR, "%s : iptc_append_entry() error : %s\n", |
535 |
syslog(LOG_ERR, "%s : iptc_append_entry() error : %s\n", |
521 |
logcaller, iptc_strerror(errno)); |
536 |
logcaller, iptc_strerror(errno)); |
|
|
537 |
#ifdef IPTABLES_143 |
538 |
iptc_free(h); |
539 |
#else |
540 |
iptc_free(&h); |
541 |
#endif |
522 |
return -1; |
542 |
return -1; |
523 |
} |
543 |
} |
524 |
#ifdef IPTABLES_143 |
544 |
#ifdef IPTABLES_143 |
Lines 529-536
iptc_init_verify_and_append(const char *
Link Here
|
529 |
{ |
549 |
{ |
530 |
syslog(LOG_ERR, "%s : iptc_commit() error : %s\n", |
550 |
syslog(LOG_ERR, "%s : iptc_commit() error : %s\n", |
531 |
logcaller, iptc_strerror(errno)); |
551 |
logcaller, iptc_strerror(errno)); |
|
|
552 |
#ifdef IPTABLES_143 |
553 |
iptc_free(h); |
554 |
#else |
555 |
iptc_free(&h); |
556 |
#endif |
532 |
return -1; |
557 |
return -1; |
533 |
} |
558 |
} |
|
|
559 |
#ifdef IPTABLES_143 |
560 |
iptc_free(h); |
561 |
#else |
562 |
iptc_free(&h); |
563 |
#endif |
534 |
return 0; |
564 |
return 0; |
535 |
} |
565 |
} |
536 |
|
566 |
|