diff options
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index b2447cd..1534c9e 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -624,8 +624,7 @@ static int l2tp_tunnel_alloc(struct l2tp_serv_t *serv, struct l2tp_packet_t *pac if (!conn->tid) { if (conf_verbose) log_warn("l2tp: no free tid available\n"); - mempool_free(conn); - return -1; + goto out_err; } memcpy(&conn->lac_addr, &pack->addr, sizeof(pack->addr)); |