Merged revisions 116350 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
r116350 | file | 2008-05-14 15:25:54 -0300 (Wed, 14 May 2008) | 4 lines

Make the ldap version setting work without having both version and protocol set.
(closes issue #12613)
Reported by: suretec

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@116351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Joshua Colp 18 years ago
parent c348875fd0
commit a90f428994

@ -1432,7 +1432,7 @@ int parse_config(void)
} else
ast_copy_string(basedn, s, sizeof(basedn));
if (!(s = ast_variable_retrieve(config, "_general", "version")) || !(s = ast_variable_retrieve(config, "_general", "protocol"))) {
if (!(s = ast_variable_retrieve(config, "_general", "version")) && !(s = ast_variable_retrieve(config, "_general", "protocol"))) {
ast_log(LOG_NOTICE, "No explicit LDAP version found, using 3 as default.\n");
version = 3;
} else if (sscanf(s, "%d", &version) != 1 || version < 1 || version > 6) {

Loading…
Cancel
Save