yandex / odyssey

Scalable PostgreSQL connection pooler
BSD 3-Clause "New" or "Revised" License
3.21k stars 165 forks source link

sources/ldap.c: fix UAF found by coverity #671

Open chipitsine opened 3 months ago

chipitsine commented 3 months ago

527 while (retry_cnt--) {

CID 508598: (#1 of 1): Use after free (USE_AFTER_FREE)

  1. deref_arg: Calling od_ldap_server_auth dereferences freed pointer serv.[show details] 528 ldap_rc = od_ldap_server_auth(serv, cl, tok); 529 530 od_ldap_endpoint_lock(cl->rule->ldap_endpoint);