|
@@ -755,7 +755,8 @@ static int pppol2tp_connect(struct socket *sock, struct sockaddr *uservaddr,
|
|
/* If PMTU discovery was enabled, use the MTU that was discovered */
|
|
/* If PMTU discovery was enabled, use the MTU that was discovered */
|
|
dst = sk_dst_get(tunnel->sock);
|
|
dst = sk_dst_get(tunnel->sock);
|
|
if (dst != NULL) {
|
|
if (dst != NULL) {
|
|
- u32 pmtu = dst_mtu(__sk_dst_get(tunnel->sock));
|
|
|
|
|
|
+ u32 pmtu = dst_mtu(dst);
|
|
|
|
+
|
|
if (pmtu != 0)
|
|
if (pmtu != 0)
|
|
session->mtu = session->mru = pmtu -
|
|
session->mtu = session->mru = pmtu -
|
|
PPPOL2TP_HEADER_OVERHEAD;
|
|
PPPOL2TP_HEADER_OVERHEAD;
|