Unless the error is exactly NT_STATUS_OK, we might not have a server info, so
authorAndrew Bartlett <abartlet@samba.org>
Sun, 25 Nov 2001 02:30:30 +0000 (02:30 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 25 Nov 2001 02:30:30 +0000 (02:30 +0000)
we need to bail here.
(This used to be commit ea0331354e5968aa0a25c0b12379a56c72d7946b)

source3/rpc_server/srv_netlog_nt.c

index 6f0d2384d555e3d779353b3a27f271b7767835b4..e57c445bb52f568512a75aef010b89fa4bab5c98 100644 (file)
@@ -620,7 +620,7 @@ NTSTATUS _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON *
 
        /* Check account and password */
     
 
        /* Check account and password */
     
-       if (NT_STATUS_IS_ERR(status)) {
+       if (!NT_STATUS_IS_OK(status)) {
                free_server_info(&server_info);
                return status;
        }
                free_server_info(&server_info);
                return status;
        }