diff options
Diffstat (limited to 'net/l2tp')
-rw-r--r-- | net/l2tp/l2tp_netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/l2tp/l2tp_netlink.c b/net/l2tp/l2tp_netlink.c index a4f78d36bace..9e13c2ff8789 100644 --- a/net/l2tp/l2tp_netlink.c +++ b/net/l2tp/l2tp_netlink.c | |||
@@ -205,9 +205,9 @@ static int l2tp_nl_cmd_tunnel_create(struct sk_buff *skb, struct genl_info *info | |||
205 | #endif | 205 | #endif |
206 | if (info->attrs[L2TP_ATTR_IP_SADDR] && | 206 | if (info->attrs[L2TP_ATTR_IP_SADDR] && |
207 | info->attrs[L2TP_ATTR_IP_DADDR]) { | 207 | info->attrs[L2TP_ATTR_IP_DADDR]) { |
208 | cfg.local_ip.s_addr = nla_get_be32( | 208 | cfg.local_ip.s_addr = nla_get_in_addr( |
209 | info->attrs[L2TP_ATTR_IP_SADDR]); | 209 | info->attrs[L2TP_ATTR_IP_SADDR]); |
210 | cfg.peer_ip.s_addr = nla_get_be32( | 210 | cfg.peer_ip.s_addr = nla_get_in_addr( |
211 | info->attrs[L2TP_ATTR_IP_DADDR]); | 211 | info->attrs[L2TP_ATTR_IP_DADDR]); |
212 | } else { | 212 | } else { |
213 | ret = -EINVAL; | 213 | ret = -EINVAL; |