[hipl-dev] [Bug 790679] Re: Minor segfault on failed startup

  • From: Miika Komu <790679@xxxxxxxxxxxxxxxxxx>
  • To: hipl-dev@xxxxxxxxxxxxx
  • Date: Wed, 01 Jun 2011 09:17:57 -0000

Does the following change fix the problem?

hipd/init.c
+ if (hip_xfrmapi_nl_ipsec) {
     hip_delete_default_prefix_sp_pair ()
+}

If yes, just make the commit?

-- 
You received this bug notification because you are a member of HIPL core
team, which is subscribed to HIPL.
https://bugs.launchpad.net/bugs/790679

Title:
  Minor segfault on failed startup

Status in Host Identity Protocol for Linux:
  New

Bug description:
  If the kernel module checks during startup fails, hipd segfaults
  instead of exiting nicely. This because the hip_xfrmapi_nl_ipsec
  (lib/tool/xfrmapi.c:49) hasn't been initialized before it is used in
  hip_delete_hit_sp_pair() [which is called on exit].

  quick & dirty patch attached

Other related posts: