mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-26 04:02:19 +00:00
Checking the value of rule in insert_rule
This commit is contained in:
parent
4dcc515709
commit
325b82ff3c
@ -81,7 +81,7 @@ insert_rule(const char *rule, iptc_handle_t * t, const char *chain,
|
|||||||
res = iptc_insert_entry(chain, (struct ipt_entry *) rule, 0, t);
|
res = iptc_insert_entry(chain, (struct ipt_entry *) rule, 0, t);
|
||||||
error
|
error
|
||||||
("res is: %d rule is: %p chain is: %s pos is: %d t is: %p",
|
("res is: %d rule is: %p chain is: %s pos is: %d t is: %p",
|
||||||
res, rule, chain, pos, t);
|
res, *rule, chain, pos, t);
|
||||||
if (!res) {
|
if (!res) {
|
||||||
error("In insert_rule: %s.", iptc_strerror(errno));
|
error("In insert_rule: %s.", iptc_strerror(errno));
|
||||||
err_ret(ERR_NETRUL, -1);
|
err_ret(ERR_NETRUL, -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user