l2tp: session is an array not a pointer
Subsystems (2)
PATCH 1/1 l2tp: session is an array not a pointer
From: Alan Cox <[email protected]>
Signed-off-by Alan Cox <[email protected]>
---
net/l2tp/l2tp_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/l2tp/l2tp_netlink.c +1 -1
@@ -632,7 +632,7 @@ static int l2tp_nl_session_send(struct sk_buff *skb, u32 portid, u32 seq, int fl nla_put_u16(skb, L2TP_ATTR_MRU, session->mru))) goto nla_put_failure; - if ((session->ifname && session->ifname[0] && + if ((session->ifname[0] && nla_put_string(skb, L2TP_ATTR_IFNAME, session->ifname)) || (session->cookie_len && nla_put(skb, L2TP_ATTR_COOKIE, session->cookie_len,
From: Alan Cox <[email protected]>
Date: Thu, 25 Oct 2012 16:22:01 +0100
Quoted 3 lines
From: Alan Cox <[email protected]>
Signed-off-by Alan Cox <[email protected]>
Applied.