diff --git a/src/parse.c b/src/parse.c index 401e7f6..2f7b7bc 100644 --- a/src/parse.c +++ b/src/parse.c @@ -1028,7 +1028,7 @@ static int hyper_parse_white_cidrs(struct hyper_pod *pod, char *json, jsmntok_t i++; for (j = 0; j < pod->w_num; j++, i++) { pod->white_cidrs[j] = (json_token_str(json, &toks[i])); - fprintf(stdout, "pod white_cidr %d: %s\n", j, pod->dns[j]); + fprintf(stdout, "pod white_cidr %d: %s\n", j, pod->white_cidrs[j]); } return i; diff --git a/src/portmapping.c b/src/portmapping.c index 9b11505..acce872 100644 --- a/src/portmapping.c +++ b/src/portmapping.c @@ -239,6 +239,7 @@ void hyper_cleanup_portmapping(struct hyper_pod *pod) int i = 0; for(i=0; i< sizeof(rules)/sizeof(struct ipt_rule); i++) { if (hyper_setup_iptables_rule(rules[i])<0) { + return; } } }