From 65a611ec7299ba992d16dff69da47b1b8e16241d Mon Sep 17 00:00:00 2001 From: Steven Danneman Date: Wed, 18 Nov 2009 16:35:16 -0800 Subject: s4/libcli: Initialize client PID for SMB2 connections Set the SMB pid to the Unix pid of the client process. --- source4/libcli/smb2/request.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/libcli/smb2/request.c') diff --git a/source4/libcli/smb2/request.c b/source4/libcli/smb2/request.c index 5d09a5083a..358d13363f 100644 --- a/source4/libcli/smb2/request.c +++ b/source4/libcli/smb2/request.c @@ -175,6 +175,7 @@ struct smb2_request *smb2_request_init_tree(struct smb2_tree *tree, uint16_t opc if (req == NULL) return NULL; SBVAL(req->out.hdr, SMB2_HDR_SESSION_ID, tree->session->uid); + SIVAL(req->out.hdr, SMB2_HDR_PID, tree->session->pid); SIVAL(req->out.hdr, SMB2_HDR_TID, tree->tid); req->session = tree->session; req->tree = tree; -- cgit