Minor cleanup (coverity)

This commit is contained in:
Howard Chu 2015-01-14 11:14:43 +00:00
parent 0e5f63ae6d
commit e861305d50
3 changed files with 2 additions and 4 deletions

View 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;

View 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 );

View 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 {