[Ipsec-tools-devel] Patch: The reference to adminsock_path for the racoonctl command
Brought to you by:
mit_warlord,
netbsd
From: Jianli L. <jl...@no...> - 2007-05-29 20:29:35
|
Hi, There is a problem in the racoonctl command. It always returns ""send: Bad file descriptor" when you issue a racoonctl command. We have found it is caused by a "typo" type of bug in the code. We have fixed the problem through the following change: diff -uNr ipsec-tools-0.6.5.orig/src/racoon/kmpstat.c ipsec-tools-0.6.5/src/racoon/kmpstat.c --- ipsec-tools-0.6.5.orig/src/racoon/kmpstat.c 2007-05-24 16:31:02.000000000 -0500 +++ ipsec-tools-0.6.5/src/racoon/kmpstat.c 2007-05-25 15:30:00.000000000 -0500 @@ -100,8 +100,9 @@ =20 memset(&name, 0, sizeof(name)); name.sun_family =3D AF_UNIX; - snprintf(name.sun_path, sizeof(name.sun_path), - "%s", ADMINSOCK_PATH); +/* Start of change: Correct the mistake in referencing to adminsock_path */ + snprintf(name.sun_path, sizeof(name.sun_path), "%s", adminsock_path); +/* End of change */ =20 so =3D socket(AF_UNIX, SOCK_STREAM, 0); if (so < 0) Thanks, Jianli |