[GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.
[gd/samba/.git] / source / python / py_smb.c
index 2f5d1161d87d16f23539640a643123f0dc476006..a1eba47964a6ae2c37fbe508bd91cdcd97ecdf59 100644 (file)
@@ -48,7 +48,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);