update openswan to 2.40
[openwrt-10.03/.git] / target / linux / package / openswan / patches / fix-compile-pfkey.patch
1 diff -Nur openswan-2.4.0.orig/linux/net/ipsec/pfkey_v2.c openswan-2.4.0/linux/net/ipsec/pfkey_v2.c
2 --- openswan-2.4.0.orig/linux/net/ipsec/pfkey_v2.c      2005-09-06 04:10:03.000000000 +0200
3 +++ openswan-2.4.0/linux/net/ipsec/pfkey_v2.c   2005-09-21 09:32:49.214628750 +0200
4 @@ -821,7 +821,9 @@
5                 return 0; /* -EINVAL; */
6         }
7  
8 +#ifdef NET_26
9         write_lock_bh(&pfkey_sock_lock);
10 +#endif
11  
12         KLIPS_PRINT(debug_pfkey,
13                     "klips_debug:pfkey_release: "