Commit e861305d authored by Howard Chu's avatar Howard Chu
Browse files

Minor cleanup (coverity)

parent 0e5f63ae
......@@ -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;
......
......@@ -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 );
......
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment