summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-08-01 09:10:09 +0200
committerStefan Metzmacher <metze@samba.org>2012-08-01 14:17:14 +0200
commit7977d90f1e88d0c23b4a14ffd15bf8c077c9d701 (patch)
treee2eb3a82ae9947f7e1913454e6ccbfdd163f858b /source4
parent286e249737a40a575a9f13d8af4ef5e4e273c873 (diff)
downloadsamba-7977d90f1e88d0c23b4a14ffd15bf8c077c9d701.tar.gz
samba-7977d90f1e88d0c23b4a14ffd15bf8c077c9d701.tar.bz2
samba-7977d90f1e88d0c23b4a14ffd15bf8c077c9d701.zip
s4:librpc/dcerpc_smb2: sync smb2_session_key() with smb_session_key()
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/dcerpc_smb2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc_smb2.c b/source4/librpc/rpc/dcerpc_smb2.c
index 2877525644..473ca78ad1 100644
--- a/source4/librpc/rpc/dcerpc_smb2.c
+++ b/source4/librpc/rpc/dcerpc_smb2.c
@@ -390,6 +390,8 @@ static NTSTATUS smb2_session_key(struct dcecli_connection *c, DATA_BLOB *session
struct smb2_private *smb = talloc_get_type(c->transport.private_data,
struct smb2_private);
+ if (smb == NULL) return NT_STATUS_CONNECTION_DISCONNECTED;
+
if (smb->session_key.length == 0) {
return NT_STATUS_NO_USER_SESSION_KEY;
}