[opendnssec/SoftHSMv2] cb2ddc: Fix double free

Rickard Bellgrim rickard at opendnssec.org
Thu Sep 27 20:16:13 CEST 2018


  Branch: refs/heads/develop
  Home:   https://github.com/opendnssec/SoftHSMv2
  Commit: cb2ddc07432edd4d4530c5aea22195142660d6d6
      https://github.com/opendnssec/SoftHSMv2/commit/cb2ddc07432edd4d4530c5aea22195142660d6d6
  Author: Brian J Murray <bmurray7jhu at gmail.com>
  Date:   2018-09-26 (Wed, 26 Sep 2018)

  Changed paths:
    M src/lib/SoftHSM.cpp

  Log Message:
  -----------
  Fix double free

Set fields to NULL in  SoftHSM::~SoftHSM() to avoid double free. Both
SoftHSM::~SoftHSM() and SoftHSM::C_Finalize() attempted to free
several variables, but only SoftHSM::C_Finalize() included checks if the
variable was null.


  Commit: 7d9639a84733d2c569fe9fdc15680fd60ed384b9
      https://github.com/opendnssec/SoftHSMv2/commit/7d9639a84733d2c569fe9fdc15680fd60ed384b9
  Author: Rickard Bellgrim <rickard at opendnssec.org>
  Date:   2018-09-27 (Thu, 27 Sep 2018)

  Changed paths:
    M src/lib/SoftHSM.cpp

  Log Message:
  -----------
  Merge pull request #418 from bmurray7/fix-double-free

Set fields to NULL to avoid double free


Compare: https://github.com/opendnssec/SoftHSMv2/compare/42e9c9ed1c48...7d9639a84733
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Opendnssec-commits mailing list