summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c
index 8addf16..e6ec075 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.c
+++ b/accel-pppd/ctrl/l2tp/l2tp.c
@@ -2746,6 +2746,8 @@ static int l2tp_recv_StopCCN(struct l2tp_conn_t *conn,
if (l2tp_send_ZLB(conn) < 0)
log_tunnel(log_warn, conn, "acknowledging StopCCN failed\n");
+ l2tp_tunnel_free(conn);
+
return -1;
}
@@ -3732,7 +3734,7 @@ static int l2tp_conn_read(struct triton_md_handler_t *h)
break;
case Message_Type_Stop_Ctrl_Conn_Notify:
l2tp_recv_StopCCN(conn, pack);
- goto drop;
+ break;
case Message_Type_Hello:
l2tp_recv_HELLO(conn, pack);
break;