summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-11-25 02:30:30 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-11-25 02:30:30 +0000
commit97346ea795f43a9d9487d9c1a63af4016a72e753 (patch)
tree6e7a8c1280ca307fdba100cb5fdafe008f88ee0d /source3
parenta8982ca90cafc62da678065cdb93d60ac2033182 (diff)
downloadsamba-97346ea795f43a9d9487d9c1a63af4016a72e753.tar.gz
samba-97346ea795f43a9d9487d9c1a63af4016a72e753.tar.bz2
samba-97346ea795f43a9d9487d9c1a63af4016a72e753.zip
Unless the error is exactly NT_STATUS_OK, we might not have a server info, so
we need to bail here. (This used to be commit ea0331354e5968aa0a25c0b12379a56c72d7946b)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_netlog_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index 6f0d2384d5..e57c445bb5 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/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;
}