Code

openldap: check ld structure before passing it to ldap_unbind()
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 28 Jun 2017 11:46:59 +0000 (13:46 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 28 Jun 2017 11:46:59 +0000 (13:46 +0200)
commit3179c85911babea7e51902d5d72c6fe1812af4d0
tree741fba03b39563641e5d8e2f31c7b8ef707df16b
parentfd01cdd0546ccbbda7f4cf5db2d0ae28e1e770cd
openldap: check ld structure before passing it to ldap_unbind()

This prevents collectd from segfaulting when the ldap session setup
fails before opening a connection to openldap (syntax error in the URL
option for example).
src/openldap.c