]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_ldap: Various code improvements 67/5067/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:52 +0000 (17:37 -0600)
commite57961db846ae72250d72829f32d92492079a050
treee3da3e50fe4af257c505c494b3dc7a0a2ff4f83b
parent9ad1df71b363d1b3c92622873bb193dca5ddbb8c
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