summaryrefslogtreecommitdiff
path: root/source3/smbd/sesssetup.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-07-12 14:26:34 +1000
committerAndrew Tridgell <tridge@samba.org>2010-07-14 16:22:49 +1000
commit0d95cee58f80e46636fa4b826d248c9ce9983c9b (patch)
tree8d48702186666fc8a27cb21685c61870fa95d4c5 /source3/smbd/sesssetup.c
parent1debe30689e75023fab44028ef6942a692e37e95 (diff)
downloadsamba-0d95cee58f80e46636fa4b826d248c9ce9983c9b.tar.gz
samba-0d95cee58f80e46636fa4b826d248c9ce9983c9b.tar.bz2
samba-0d95cee58f80e46636fa4b826d248c9ce9983c9b.zip
s3:auth Change auth_ntlmssp_server_info API to return NTSTATUS
This fixes a bug where register_existing_vuid() could be called with a NULL server_info if the alloction failed. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/smbd/sesssetup.c')
-rw-r--r--source3/smbd/sesssetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 391654ebe3..80a5239de3 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -637,7 +637,7 @@ static void reply_spnego_ntlmssp(struct smb_request *req,
struct smbd_server_connection *sconn = req->sconn;
if (NT_STATUS_IS_OK(nt_status)) {
- server_info = auth_ntlmssp_server_info(talloc_tos(), (*auth_ntlmssp_state));
+ nt_status = auth_ntlmssp_server_info(talloc_tos(), (*auth_ntlmssp_state), &server_info);
} else {
/* Note that this server_info won't have a session
* key. But for map to guest, that's exactly the right