]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/mods.c
don't return entry if requested attr is not present (ITS#5650)
[openldap] / servers / slapd / mods.c
index cbb1d70300b1b760ccf59eb3419517a93601b4a3..820ed298f679c8c93f2f7849afdda5a06f889cd5 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2007 The OpenLDAP Foundation.
+ * Copyright 1998-2008 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -69,7 +69,7 @@ modify_add_values(
        if ( a != NULL ) {
                MatchingRule    *mr;
                struct berval *cvals;
-               int             rc, i, j, p;
+               int             rc, i, p;
                unsigned flags;
 
                mr = mod->sm_desc->ad_type->sat_equality;
@@ -196,7 +196,7 @@ modify_delete_vindex(
        MatchingRule    *mr = mod->sm_desc->ad_type->sat_equality;
        struct berval *cvals;
        int             *id2 = NULL;
-       int             i, j, rc;
+       int             i, j, rc = 0;
        unsigned flags;
        char            dummy = '\0';