Closed rkhapov closed 3 months ago
Coverity has found an issue
*** CID 508598: Memory - illegal accesses (USE_AFTER_FREE) /sources/ldap.c: 528 in od_auth_ldap() 522 "failed to get ldap connection"); 523 return NOT_OK_RESPONSE; 524 } 525 526 size_t retry_cnt = 3; 527 while (retry_cnt--) {
CID 508598: Memory - illegal accesses (USE_AFTER_FREE) Calling "od_ldap_server_auth" dereferences freed pointer "serv". 528 ldap_rc = od_ldap_server_auth(serv, cl, tok); 529 530 od_ldap_endpoint_lock(cl->rule->ldap_endpoint); 531 532 switch (ldap_rc) { 533 case LDAP_SUCCESS: {
Coverity has found an issue
*** CID 508598: Memory - illegal accesses (USE_AFTER_FREE) /sources/ldap.c: 528 in od_auth_ldap() 522 "failed to get ldap connection"); 523 return NOT_OK_RESPONSE; 524 } 525 526 size_t retry_cnt = 3; 527 while (retry_cnt--) {