[hipl-dev] [Bug 695328] Re: hip_firewall_port_cache_uninit_hldb() crashes if init function has not been called previously

  • From: David Martin <695328@xxxxxxxxxxxxxxxxxx>
  • To: hipl-dev@xxxxxxxxxxxxx
  • Date: Tue, 17 Jul 2012 14:55:26 -0000

** Changed in: hipl
       Status: Fix Committed => Fix Released

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

Title:
  hip_firewall_port_cache_uninit_hldb() crashes if init function has not
  been called previously

Status in Host Identity Protocol for Linux:
  Fix Released

Bug description:
  This bug applies to branch lp:~rene-hummen/hipl/ipsec_esp.

  The function hip_firewall_cache_delete_hldb() produces a segmentation
  fault if the corresponding initialization function
  hip_firewall_cache_init_hldb() has not been called during
  initialization of the firewall.

  This can happen if one of the other init-functions (e.g.
  hip_fw_init_esp_prot(), hip_fw_init_esp_prot_conntrack(), ...) which
  are called in firewall_init_extensions() exits with an error.

  The bug can be reproduced by adding a simple "return -1" in front of
  the line 547 in firewall/firewall.c and then starting the firewall.

  An example for the log of the firewall, when producing this bug, can
  be found in the attachments.

To manage notifications about this bug go to:
https://bugs.launchpad.net/hipl/+bug/695328/+subscriptions

Other related posts: