l2tp: session is an array not a pointer
authorAlan Cox <alan@linux.intel.com>
Thu, 25 Oct 2012 05:22:01 +0000 (05:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Oct 2012 07:46:41 +0000 (03:46 -0400)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_netlink.c

index 6c4cc12c7414f90341513a29da3097f4c9f9ecb4..bbba3a19e94457378fad759edbe04392f93c1256 100644 (file)
@@ -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,