diff options
author | Sumit Bose <sbose@redhat.com> | 2011-04-11 21:49:03 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-04-11 16:08:53 -0400 |
commit | 891112ab5cdc2c28946fef782e7405622a00c473 (patch) | |
tree | 1165f645ec931a75dcb5d8f5b7b08fd3efee0062 /src/providers/ldap/sdap_async_connection.c | |
parent | 47fed250def959530a95903b1dd284e98dbc7273 (diff) | |
download | sssd-891112ab5cdc2c28946fef782e7405622a00c473.tar.gz sssd-891112ab5cdc2c28946fef782e7405622a00c473.tar.xz sssd-891112ab5cdc2c28946fef782e7405622a00c473.zip |
Initialise srv_opts even if rootDSE is missing
Diffstat (limited to 'src/providers/ldap/sdap_async_connection.c')
-rw-r--r-- | src/providers/ldap/sdap_async_connection.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index fbbb44479..bae412c7b 100644 --- a/src/providers/ldap/sdap_async_connection.c +++ b/src/providers/ldap/sdap_async_connection.c @@ -1285,14 +1285,15 @@ static void sdap_cli_rootdse_done(struct tevent_req *subreq) return; } - ret = sdap_get_server_opts_from_rootdse(state, - state->service->uri, rootdse, - state->opts, &state->srv_opts); - if (ret) { - DEBUG(1, ("sdap_get_server_opts_from_rootdse failed.\n")); - tevent_req_error(req, ret); - return; - } + } + + ret = sdap_get_server_opts_from_rootdse(state, + state->service->uri, rootdse, + state->opts, &state->srv_opts); + if (ret) { + DEBUG(1, ("sdap_get_server_opts_from_rootdse failed.\n")); + tevent_req_error(req, ret); + return; } sasl_mech = dp_opt_get_string(state->opts->basic, SDAP_SASL_MECH); |