r25598: Add missing become_root/unbecome_root around calls of add_aliases.
[samba.git] / source / python / py_smb.c
index 5f913682d119bfb700eb176d0a41ebd5f1e86b17..17b2a2d5aa13782b35f07e517089f7dea0a5f798 100644 (file)
@@ -47,7 +47,7 @@ static PyObject *py_smb_connect(PyObject *self, PyObject *args, PyObject *kw)
 
        ZERO_STRUCT(ip);
 
-       if (!cli_connect(cli, server, &ip))
+       if (!NT_STATUS_IS_OK(cli_connect(cli, server, &ip)))
                return NULL;
 
        return new_cli_state_object(cli);