summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/l2tp/l2tp_ppp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c
index 96bc7a67585a..9b071910b4ba 100644
--- a/net/l2tp/l2tp_ppp.c
+++ b/net/l2tp/l2tp_ppp.c
@@ -915,7 +915,7 @@ static int pppol2tp_getname(struct socket *sock, struct sockaddr *uaddr,
915 goto end_put_sess; 915 goto end_put_sess;
916 } 916 }
917 917
918 inet = inet_sk(sk); 918 inet = inet_sk(tunnel->sock);
919 if (tunnel->version == 2) { 919 if (tunnel->version == 2) {
920 struct sockaddr_pppol2tp sp; 920 struct sockaddr_pppol2tp sp;
921 len = sizeof(sp); 921 len = sizeof(sp);