1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

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 ea0331354e)
This commit is contained in:
Andrew Bartlett 2001-11-25 02:30:30 +00:00
parent a8982ca90c
commit 97346ea795

View 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 */
if (NT_STATUS_IS_ERR(status)) {
if (!NT_STATUS_IS_OK(status)) {
free_server_info(&server_info);
return status;
}