patch-2.0.33 linux/net/ipv4/udp.c
Next file: linux/net/netsyms.c
Previous file: linux/net/ipv4/route.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Wed Dec 10 09:14:01 1997
- Orig file:
v2.0.32/linux/net/ipv4/udp.c
- Orig date:
Mon Sep 15 09:54:52 1997
diff -u --recursive --new-file v2.0.32/linux/net/ipv4/udp.c linux/net/ipv4/udp.c
@@ -55,6 +55,7 @@
* Elliot Poger : Added support for SO_BINDTODEVICE.
* Willy Konynenberg : Transparent proxy adapted to new
* socket hash code.
+ * Philip Gladstone: Added missing ip_rt_put
*
*
* This program is free software; you can redistribute it and/or
@@ -874,6 +875,8 @@
sk->daddr = usin->sin_addr.s_addr;
sk->dummy_th.dest = usin->sin_port;
sk->state = TCP_ESTABLISHED;
+ if (sk->ip_route_cache)
+ ip_rt_put(sk->ip_route_cache);
sk->ip_route_cache = rt;
return(0);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov