diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-11-25 02:30:30 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-11-25 02:30:30 +0000 |
commit | ea0331354e5968aa0a25c0b12379a56c72d7946b (patch) | |
tree | 8eeba17c99a2d802929c5ab94e2b4882bc21027a /source/rpc_server | |
parent | 84b62d3c8ebd78cd578ac36168631b3bbcafdd8c (diff) | |
download | samba-ea0331354e5968aa0a25c0b12379a56c72d7946b.tar.gz samba-ea0331354e5968aa0a25c0b12379a56c72d7946b.tar.xz samba-ea0331354e5968aa0a25c0b12379a56c72d7946b.zip |
Unless the error is exactly NT_STATUS_OK, we might not have a server info, so
we need to bail here.
Diffstat (limited to 'source/rpc_server')
-rw-r--r-- | source/rpc_server/srv_netlog_nt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/rpc_server/srv_netlog_nt.c b/source/rpc_server/srv_netlog_nt.c index 6f0d2384d55..e57c445bb52 100644 --- a/source/rpc_server/srv_netlog_nt.c +++ b/source/rpc_server/srv_netlog_nt.c @@ -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 */ - if (NT_STATUS_IS_ERR(status)) { + if (!NT_STATUS_IS_OK(status)) { free_server_info(&server_info); return status; } |