]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/add.c
Plug mutex/rwlock leaks (destroy them)
[openldap] / servers / slapd / add.c
index 43c1b4d9ffc7994938fb1bc3f51579cedf1940dc..e8e42bd52a390e4935e99ae779d43aaa885089cc 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2008 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -592,7 +592,7 @@ int slap_add_opattrs(
        struct berval name, timestamp, csn = BER_BVNULL;
        struct berval nname, tmp;
        char timebuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
-       char csnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE ];
+       char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE ];
        Attribute *a;
 
        if ( SLAP_LASTMOD( op->o_bd ) ) {