diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-01-24 16:14:36 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-01-25 00:05:21 +0400 |
commit | 4dcf5bc8aff18055190a9445bcac422227e1bd2f (patch) | |
tree | a42210575cc2687cf4e3e63e451d0548297cecd0 /accel-pppd | |
parent | 03b5f8b86e84170a04196ed15a8da56dcef6e4c0 (diff) | |
download | accel-ppp-4dcf5bc8aff18055190a9445bcac422227e1bd2f.tar.gz accel-ppp-4dcf5bc8aff18055190a9445bcac422227e1bd2f.zip |
l2tp: Avoid sending CDN with reserved result value
Update call to l2tp_send_CDN() to avoid using the 0 result code
(reserved by RFC 2661).
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 8dfbf65a..2772f821 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -1196,8 +1196,8 @@ static int l2tp_recv_ICRQ(struct l2tp_conn_t *conn, struct l2tp_packet_t *pack) if (!assigned_sid) { if (conf_verbose) log_ppp_warn("l2tp: ICRQ: no Assigned-Session-ID attribute present in message\n"); - res = 0; - err = 0; + res = 2; + err = 6; goto out_reject; } |