]> git.sur5r.net Git - openldap/commitdiff
More for ITS#7170
authorHoward Chu <hyc@openldap.org>
Thu, 23 Feb 2012 20:08:53 +0000 (12:08 -0800)
committerHoward Chu <hyc@openldap.org>
Thu, 23 Feb 2012 20:08:53 +0000 (12:08 -0800)
servers/slapd/back-mdb/idl.c

index 29a3796345a84ce4efea3deed297e738a99d2f87..009667f59ade96bc1ea303d0446a1ecf30f6a880 100644 (file)
@@ -518,6 +518,7 @@ mdb_idl_insert_keys(
                        }
                }
        } else if ( rc == MDB_NOTFOUND ) {
+               flag &= ~MDB_APPEND;
 put1:  data.mv_data = &id;
                data.mv_size = sizeof(ID);
                rc = mdb_cursor_put( cursor, &key, &data, flag );