Issue 10032 - at_add returns a free'd pointer on error
Summary: at_add returns a free'd pointer on error
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: 2.5.15
Assignee: Ondřej Kuzník
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-28 13:06 UTC by Ondřej Kuzník
Modified: 2023-07-10 21:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ondřej Kuzník 2023-03-28 13:06:00 UTC
When an invalid schema is provided (e.g. the current ./servers/slapd/schema/msuser.schema of memberof/dynlist is loaded already), at_add() hits error handling and frees at->at_oid, but that string is being returned in *err. A fix is coming.
Comment 1 Ondřej Kuzník 2023-03-28 13:26:19 UTC
This is caused by ITS#8977 changing the members of mdbocs. But pcache (wrongly?) expects that cm->db.bd_info->bi_cf_ocs would be the DB config objectclass and not the one for its backend.
Comment 2 Ondřej Kuzník 2023-03-28 13:27:07 UTC
(Wrong ticket in comment #1, sorry)
Comment 4 Quanah Gibson-Mount 2023-04-27 16:16:39 UTC
head:

  • 6c216497 
by Ondřej Kuzník at 2023-03-31T04:48:17+00:00 
ITS#10032 Use the correct ocs field


RE26:

  • 9945f19a 
by Ondřej Kuzník at 2023-04-27T15:42:09+00:00 
ITS#10032 Use the correct ocs field



RE25:

  • 5fedf314 
by Ondřej Kuzník at 2023-04-27T15:43:55+00:00 
ITS#10032 Use the correct ocs field