Checking the value of rule in insert_rule

This commit is contained in:
MissValeska 2014-12-03 12:51:52 -08:00
parent 6ef905da67
commit 564da85dc8

View File

@ -80,8 +80,8 @@ insert_rule(const char *rule, iptc_handle_t * t, const char *chain,
int res;
res = iptc_insert_entry(chain, (struct ipt_entry *) rule, 0, t);
error
("res is: %d rule is: %p chain is: %s pos is: %d t is: %p errno is: %d",
res, rule, chain, pos, t, errno);
("res is: %d rule is: %p chain is: %s pos is: %d t is: %p",
res, *rule, chain, pos, t);
if (!res) {
error("In insert_rule: %s.", iptc_strerror(errno));
err_ret(ERR_NETRUL, -1);