summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-09-22 03:26:38 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-09-22 03:26:38 +0200
commit30f1d146129d191ad26bb171b68b2e42d18a8558 (patch)
tree594efaa1fcce8582c0240c697f13ec9abb6bb415 /pfinet
parentdb228ac2de3515a726e786fddfd257b48c7e1c29 (diff)
Fix assignment from incompatible pointer type
* pfinet/linux-src/net/ipv4/tcp_ipv4.c (tcp_v4_connect): xchg &rt->u.dst instead of just rt with sk->dst_cache.
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/linux-src/net/ipv4/tcp_ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/linux-src/net/ipv4/tcp_ipv4.c b/pfinet/linux-src/net/ipv4/tcp_ipv4.c
index 2364de33..ab6db9bb 100644
--- a/pfinet/linux-src/net/ipv4/tcp_ipv4.c
+++ b/pfinet/linux-src/net/ipv4/tcp_ipv4.c
@@ -613,7 +613,7 @@ int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len)
return -ENETUNREACH;
}
- dst_release(xchg(&sk->dst_cache, rt));
+ dst_release(xchg(&sk->dst_cache, &rt->u.dst));
buff = sock_wmalloc(sk, (MAX_HEADER + sk->prot->max_header),
0, GFP_KERNEL);