]> the.earth.li Git - onak.git/commit
Ensure DB4 backend dbconns memory is initialised to zero
authorJonathan McDowell <noodles@earth.li>
Tue, 24 Mar 2009 20:47:43 +0000 (20:47 +0000)
committerJonathan McDowell <noodles@earth.li>
Tue, 24 Mar 2009 20:47:43 +0000 (20:47 +0000)
commit61b6fcfd1226b6540c151c902f8b688545494736
tree0b14db12c67055752010cb4396e22c6c02b3d923
parent1a72b8d85895fc9ffba0d8f6a9240634ce6ee8dc
Ensure DB4 backend dbconns memory is initialised to zero

  Change to using calloc to allocate the memory for the dbconns array,
  as this will ensure that all the pointers in it are NULL which
  prevents us segfaulting on abnormal cleanup. Fixes the segfault from
  Debian bug #520117 but not the underlying issue.
keydb_db4.c