]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_ldap: Various code improvements 66/5066/2
authorSean Bright <sean.bright@gmail.com>
Wed, 22 Feb 2017 14:53:25 +0000 (09:53 -0500)
committerSean Bright <sean.bright@gmail.com>
Wed, 22 Feb 2017 23:37:46 +0000 (17:37 -0600)
commitb44dccc2c45b14ce3250f7d63b8b4993a540b128
treeaf59980f79a4aaeb499a7eb98fb2200957a780e0
parent3175d1b65fb66436816aa0eb8870d0ade41c8071
res_config_ldap: Various code improvements

The initial motivation for this patch was to properly handle memory
allocation failures - we weren't checking the return values from the
various LDAP library allocation functions.

In the process, because update_ldap() and update2_ldap() were
substantially the same code, they've been consolidated.

Change-Id: Iebcfe404177cc6860ee5087976fe97812221b822
res/res_config_ldap.c