Skip to content

Commit

Permalink
[ldap] fix error handling when no available conn
Browse files Browse the repository at this point in the history
Do not try to release/free a conn if we do not have one

(cherry picked from commit 27acf2a)
  • Loading branch information
bogdan-iancu committed Oct 9, 2024
1 parent 635e5d3 commit 31e4ed7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ldap/ldap_exp_fn.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ int ldap_search_impl_async(
return 1;

error:
release_ldap_connection(conn);
if (conn)
release_ldap_connection(conn);
return rc;
}

Expand Down

0 comments on commit 31e4ed7

Please sign in to comment.