summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accel-pppd/extra/ippool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/extra/ippool.c b/accel-pppd/extra/ippool.c
index 844981cc..44f450cd 100644
--- a/accel-pppd/extra/ippool.c
+++ b/accel-pppd/extra/ippool.c
@@ -256,7 +256,8 @@ static void generate_pool_p2p(struct ippool_t *p)
addr = list_entry(p->gw_list.next, typeof(*addr), entry);
list_del(&addr->entry);
}
- }
+ } else if (conf_gw_ip_address == peer_addr->addr)
+ continue;
it = malloc(sizeof(*it));
if (!it) {