From 6065205cb2e8dc0432d47a59d27c7f10d0006751 Mon Sep 17 00:00:00 2001 From: Pengfei Ni Date: Fri, 27 May 2016 07:56:05 +0000 Subject: [PATCH] tiny fix --- src/parse.c | 2 +- src/portmapping.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; } } }