net: l2tp: fix negative assignment to unsigned int

recv_seq, send_seq and lns_mode mode are all defined as
unsigned int foo:1;

Signed-off-by: Asbjoern Sloth Toennesen <asbjorn@asbjorn.st>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Asbjørn Sloth Tønnesen
2016-11-07 20:39:28 +00:00
committed by David S. Miller
parent 57ceb8611d
commit 3f9b9770b4
2 changed files with 4 additions and 4 deletions

View File

@ -715,7 +715,7 @@ void l2tp_recv_common(struct l2tp_session *session, struct sk_buff *skb,
l2tp_info(session, L2TP_MSG_SEQ,
"%s: requested to enable seq numbers by LNS\n",
session->name);
session->send_seq = -1;
session->send_seq = 1;
l2tp_session_set_header_len(session, tunnel->version);
}
} else {