]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10031 Adjust *err if we free it
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 28 Mar 2023 13:46:22 +0000 (14:46 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 27 Apr 2023 15:14:02 +0000 (15:14 +0000)
servers/slapd/at.c

index 99efba65d80bafdd83c4e2b4095bcb0b53b6d9f9..353a641e34a2980f4822ba303adabcc65f6c74e8 100644 (file)
@@ -952,11 +952,15 @@ error_return:;
                }
 
                if ( oidm ) {
+                       if ( *err == at->at_oid )
+                               *err = oidm;
                        SLAP_FREE( at->at_oid );
                        at->at_oid = oidm;
                }
 
                if ( soidm ) {
+                       if ( *err == at->at_syntax_oid )
+                               *err = soidm;
                        SLAP_FREE( at->at_syntax_oid );
                        at->at_syntax_oid = soidm;
                }