[Openswan dev] KLIPS module references FIX

Ulrich Weber uweber at astaro.com
Tue Oct 25 12:01:18 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

klips seems to lack module references. With CONFIG_MODULE_UNLOAD
support my 2.6.12 system crashed when pluto was started.
With the attached patch pluto starts now normally.

Seems to be related to the following bug IDs:
http://bugs.xelerance.com/view.php?id=342
http://bugs.xelerance.com/view.php?id=454

Cheers
 Ulrich

- --
Ulrich Weber <uweber at astaro.com> | Software Engineer
Astaro AG | www.astaro.com | Phone +49-721-25516-248 | Fax -200
Amalienbadstrasse 36 / Bau 33a | 76227 Karlsruhe | Germany
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDXfRe22t2oTuElzoRAsEPAKCG4HL0bQAmpS1APfFbd2hTpxcObQCcC6lQ
JwjvKk48RWHgU1MQMGOlhlk=
=Y5P2
-----END PGP SIGNATURE-----

-------------- next part --------------
diff -Nru openswan-2.4.2dr4.org/linux/net/ipsec/pfkey_v2.c openswan-2.4.2dr4/linux/net/ipsec/pfkey_v2.c
--- openswan-2.4.2dr4.org/linux/net/ipsec/pfkey_v2.c	2005-10-25 10:23:13.000000000 +0200
+++ openswan-2.4.2dr4/linux/net/ipsec/pfkey_v2.c	2005-10-25 10:48:17.000000000 +0200
@@ -1384,12 +1384,14 @@
 
 #ifdef NET_21
 struct net_proto_family pfkey_family_ops = {
-	PF_KEY,
-	pfkey_create
+	.family =	PF_KEY,
+	.create =	pfkey_create,
+	.owner =	THIS_MODULE,
 };
 
 struct proto_ops pfkey_ops = {
 	family:		PF_KEY,
+	owner:		THIS_MODULE,
 	release:	pfkey_release,
 	bind:		sock_no_bind,
 	connect:	sock_no_connect,


More information about the Dev mailing list