Skip to content

Commit 952a76c

Browse files
committed
check for initialize failure
1 parent bcef266 commit 952a76c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ldap/base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ LDAP *fr_ldap_handle_thread_local(void)
11341134
if (!ldap_thread_local_handle) {
11351135
LDAP *handle;
11361136

1137-
ldap_initialize(&handle, "");
1137+
MEM(ldap_initialize(&ldap_thread_local_handle, "") == LDAP_SUCCESS);
11381138

11391139
fr_atexit_thread_local(ldap_thread_local_handle, _ldap_handle_thread_local_free, handle);
11401140
}

0 commit comments

Comments
 (0)