Home GnuPG
Diffusion GnuPG bec10ae4b5a8

dirmngr: Fix resource leaks and check rare errors.
bec10ae4b5a8Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

dirmngr: Fix resource leaks and check rare errors.

* dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Fix resource
leak.
(ks_ldap_search): Check error from es_fopenmem.  Use LDAP_ERR where
required.
(modlist_dump): Check error from es_fopenmem.
(uncescape): s/int/size_t/.  Use existing macros.
(extract_attributes): Use existing trim function.
(ks_ldap_put): Do not segv on error from modlist_dump.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 25 2015, 7:39 PM
Parents
rG6c701af12178: dirmngr: Minor cleanups.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGbec10ae4b5a8: dirmngr: Fix resource leaks and check rare errors. (authored by Werner Koch <wk@gnupg.org>).Mar 25 2015, 7:39 PM