]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/config.c
More for ITS#8043
[openldap] / servers / slapd / config.c
index 9c6c9c3c1f827bca44b8b58efa816577f93d8995..fe89c1b7273f84c09f8cf3c3e1e253b675f664bd 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 );
@@ -2011,7 +2010,7 @@ slap_client_connect( LDAP **ldp, slap_bindconf *sb )
                        "slap_client_connect: "
                        "URI=%s TLS context initialization failed (%d)\n",
                        sb->sb_uri.bv_val, rc, 0 );
-               return rc;
+               goto done;
        }
 #endif