s3:smbd: we want to get the next command offset and not set it...
authorStefan Metzmacher <metze@samba.org>
Thu, 21 May 2009 14:17:53 +0000 (16:17 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 21 May 2009 14:21:57 +0000 (16:21 +0200)
This should also fix the build on some hosts.

metze

source3/smbd/smb2_server.c

index 36f4c10b17d6aec56043d301fed1a7e26d84b5a8..a16a3d6c3dc4e0ddcb376938e398a4565ab4ffe4 100644 (file)
@@ -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;