]> git.sur5r.net Git - openldap/commitdiff
Minor cleanup (coverity)
authorHoward Chu <hyc@openldap.org>
Wed, 14 Jan 2015 11:14:43 +0000 (11:14 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 14 Jan 2015 11:30:33 +0000 (11:30 +0000)
servers/slapd/bconfig.c
servers/slapd/config.c
servers/slapd/modify.c

index 22143341925dad381b728d298e71474eb589955e..783a604f41988713d9cf6329c8d7c995a370a205 100644 (file)
@@ -3203,9 +3203,9 @@ config_suffix(ConfigArgs *c)
        if(tbe == c->be) {
                Debug( LDAP_DEBUG_ANY, "%s: suffix already served by this backend!.\n",
                        c->log, 0, 0);
-               return 1;
                free(pdn.bv_val);
                free(ndn.bv_val);
+               return 1;
        } else if(tbe) {
                BackendDB *b2 = tbe;
 
index cdc17d9e77900dffb4d0237986ab75a6650948dc..2fcf0e0cacceeb360ba6f0e95b8d4f5100eecabe 100644 (file)
@@ -1353,9 +1353,8 @@ slap_keepalive_parse(
                        s = ++next;
                }
 
-               if ( s == '\0' ) {
+               if ( *s == '\0' ) {
                        sk2.sk_interval = 0;
-                       s++;
 
                } else {
                        sk2.sk_interval = strtol( s, &next, 10 );
index 8958a581dee382a9c235640d650c1cdcfc5e300e..08b7da8209f96fded5c8db9e00e33c8be0d8b28e 100644 (file)
@@ -747,7 +747,6 @@ slap_sort_vals(
                                if ( match == 0 ) goto done;
                        }
                        if ( jstack == 0 ) break;
-                       if ( match == 0 ) break;
                        ir = istack[jstack--];
                        l = istack[jstack--];
                } else {