Sep 2022

1 commit
Free correctly LDAPMessage returned by ldap_search_s() in auth.c
10 Sep 2022Michael Paquiermaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #81 of 2 reviewers saw the final version

The commit preserves the NULL initialization and guarded ldap_msgfree() from #8 in src/backend/libpq/auth.c. It moves initialization immediately before ldap_search_s() and moves ldap_msgfree() before ldap_unbind(), changing local cleanup ordering.

  • Tom Lanesaw an earlier versionLLM analysis, 87% sureIn #3, he assessed the original cleanup proposal, explained that authentication failure immediately exits the backend, and argued against broader PG_CATCH cleanup; NULL guarding and initialization followed.
  • Michael Paquiersaw the final versioncommittercommitted the patch

Credits across 1 commit

Author
Zhihong Yu1
Reviewer
Michael Paquiercommitter1
Committer
Michael Paquier1