Skip to content

Commit

Permalink
Initialise ldapai_info_version field of LDAPAPIInfo struct so the LDA…
Browse files Browse the repository at this point in the history
…P_OPT_API_INFO call works
  • Loading branch information
arr2036 committed Jan 22, 2015
1 parent 92d0963 commit dcf71c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rlm_ldap/rlm_ldap.c
Expand Up @@ -571,7 +571,7 @@ static int mod_instantiate(CONF_SECTION *conf, void *instance)
* Get version info from the LDAP API.
*/
if (!version_done) {
static LDAPAPIInfo info; /* static to quiet valgrind about this being uninitialised */
static LDAPAPIInfo info = { .ldapai_info_version = LDAP_API_INFO_VERSION }; /* static to quiet valgrind about this being uninitialised */
int ldap_errno;

version_done = true;
Expand Down

0 comments on commit dcf71c1

Please sign in to comment.