]> git.sur5r.net Git - openldap/commitdiff
Don't leak syntax oid macro in case of duplicate attribute (ITS#5683)
authorPierangelo Masarati <ando@openldap.org>
Thu, 4 Sep 2008 12:19:05 +0000 (12:19 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 4 Sep 2008 12:19:05 +0000 (12:19 +0000)
servers/slapd/at.c

index 54d197c495de09ecf28d556adf0b6aa446d10b01..9339c51e6e7f80ff4c7bc521ef2d4aef135d4c11 100644 (file)
@@ -939,6 +939,11 @@ error_return:;
                        at->at_oid = oidm;
                }
 
+               if ( soidm ) {
+                       SLAP_FREE( at->at_syntax_oid );
+                       at->at_syntax_oid = soidm;
+               }
+
        } else if ( rsat ) {
                *rsat = sat;
        }