]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_ldap: Various code improvements 65/5065/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:34 +0000 (17:37 -0600)
commitf1963c5b8d098561b8bddbf30a0c27ac63a1807c
tree269d13ddbb8c1bf840847ac1631f2152bdb87602
parent89e0bf6dddd13e8b399e7739df4bcf864fe99d55
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