diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 85cc053d9d6e..94cdbc55ca7e 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -1367,7 +1367,7 @@ void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst, int more) | |||
1367 | { | 1367 | { |
1368 | struct rtable *rt = (struct rtable *) dst; | 1368 | struct rtable *rt = (struct rtable *) dst; |
1369 | 1369 | ||
1370 | if (rt) { | 1370 | if (rt && !(rt->dst.flags & DST_NOPEER)) { |
1371 | if (rt->peer == NULL) | 1371 | if (rt->peer == NULL) |
1372 | rt_bind_peer(rt, rt->rt_dst, 1); | 1372 | rt_bind_peer(rt, rt->rt_dst, 1); |
1373 | 1373 | ||
@@ -1378,7 +1378,7 @@ void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst, int more) | |||
1378 | iph->id = htons(inet_getid(rt->peer, more)); | 1378 | iph->id = htons(inet_getid(rt->peer, more)); |
1379 | return; | 1379 | return; |
1380 | } | 1380 | } |
1381 | } else | 1381 | } else if (!rt) |
1382 | printk(KERN_DEBUG "rt_bind_peer(0) @%p\n", | 1382 | printk(KERN_DEBUG "rt_bind_peer(0) @%p\n", |
1383 | __builtin_return_address(0)); | 1383 | __builtin_return_address(0)); |
1384 | 1384 | ||