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;
s = ++next;
}
- if ( s == '\0' ) {
+ if ( *s == '\0' ) {
sk2.sk_interval = 0;
- s++;
} else {
sk2.sk_interval = strtol( s, &next, 10 );
if ( sc == NULL ) {
sc = (struct slap_control *)SLAP_MALLOC( sizeof( *sc ) );
if ( sc == NULL ) {
+ ber_bvarray_free( extendedopsbv );
return LDAP_NO_MEMORY;
}
#endif /* LDAP_PF_LOCAL || SLAP_X_LISTENER_MOD */
ldap_free_urldesc( lud );
- if ( err ) return -1;
+ if ( err ) {
+ slap_free_listener_addresses(sal);
+ return -1;
+ }
/* If we got more than one address returned, we need to make space
* for it in the slap_listeners array.
if ( match == 0 ) goto done;
}
if ( jstack == 0 ) break;
- if ( match == 0 ) break;
ir = istack[jstack--];
l = istack[jstack--];
} else {