Make cli_negprot return NTSTATUS instead of bool
[samba.git] / source3 / libsmb / libsmb_server.c
index 5e37871deb10cf4bfec8abe240c8250309ae2f2b..f4714346d1d98c0027fc87f8ca7599877e6dc223 100644 (file)
@@ -433,7 +433,9 @@ again:
 
        DEBUG(4,(" session request ok\n"));
 
-       if (!cli_negprot(c)) {
+       status = cli_negprot(c);
+
+       if (!NT_STATUS_IS_OK(status)) {
                cli_shutdown(c);
                errno = ETIMEDOUT;
                return NULL;