Get NAMESPACE only the first time to login

The NAMESPACE doesn't need to be retrieved after each recovery.
This commit is contained in:
Lefteris Chatzimparmpas 2012-02-15 08:42:23 +01:00
parent fe5f789f8e
commit 64df3b0682

View File

@ -237,7 +237,7 @@ request_login(session **ssnptr, const char *server, const char *port, const
if (response_capability(ssn, t) == -1)
goto fail;
if (ssn->capabilities & CAPABILITY_NAMESPACE &&
if (!ssn->ns.delim && ssn->capabilities & CAPABILITY_NAMESPACE &&
get_option_boolean("namespace")) {
t = send_request(ssn, "NAMESPACE");
if (response_namespace(ssn, t) == -1)