From: Stefan Metzmacher Date: Thu, 21 May 2009 14:17:53 +0000 (+0200) Subject: s3:smbd: we want to get the next command offset and not set it... X-Git-Tag: tdb-1.1.5~434 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3f6eff4f5711245991237d03b66e1570e6e35a5;p=thirdparty%2Fsamba.git s3:smbd: we want to get the next command offset and not set it... This should also fix the build on some hosts. metze --- diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 36f4c10b17d..a16a3d6c3dc 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -571,7 +571,7 @@ NTSTATUS smbd_smb2_request_done_ex(struct smbd_smb2_request *req, /* the fallback dynamic buffer */ outdyn = outhdr + SMB2_HDR_BODY + 8; - next_command_ofs = SIVAL(outhdr, SMB2_HDR_NEXT_COMMAND, 0); + next_command_ofs = IVAL(outhdr, SMB2_HDR_NEXT_COMMAND); SIVAL(outhdr, SMB2_HDR_STATUS, NT_STATUS_V(status)); req->out.vector[i+1].iov_base = (void *)body.data;