diff options
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/ipv4.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index 129ed8f74138..683902fcc8ed 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c | |||
@@ -161,17 +161,10 @@ static inline void dccp_do_pmtu_discovery(struct sock *sk, | |||
161 | if (sk->sk_state == DCCP_LISTEN) | 161 | if (sk->sk_state == DCCP_LISTEN) |
162 | return; | 162 | return; |
163 | 163 | ||
164 | /* We don't check in the destentry if pmtu discovery is forbidden | 164 | dst = inet_csk_update_pmtu(sk, mtu); |
165 | * on this route. We just assume that no packet_to_big packets | 165 | if (!dst) |
166 | * are send back when pmtu discovery is not active. | ||
167 | * There is a small race when the user changes this flag in the | ||
168 | * route, but I think that's acceptable. | ||
169 | */ | ||
170 | if ((dst = __sk_dst_check(sk, 0)) == NULL) | ||
171 | return; | 166 | return; |
172 | 167 | ||
173 | dst->ops->update_pmtu(dst, mtu); | ||
174 | |||
175 | /* Something is about to be wrong... Remember soft error | 168 | /* Something is about to be wrong... Remember soft error |
176 | * for the case, if this connection will not able to recover. | 169 | * for the case, if this connection will not able to recover. |
177 | */ | 170 | */ |