From: Volker Lendecke Date: Sat, 23 Nov 2024 15:34:39 +0000 (+0100) Subject: smbd: Simplify smb_file_position_information() X-Git-Tag: tdb-1.4.13~432 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e868e6c2f1697eda6a42ae79ebf7828099a7801d;p=thirdparty%2Fsamba.git smbd: Simplify smb_file_position_information() Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke --- diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index de1b5e21c1b..7372a8c1727 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -4251,8 +4251,7 @@ static NTSTATUS smb_file_position_information(connection_struct *conn, return NT_STATUS_OK; } - position_information = (uint64_t)IVAL(pdata,0); - position_information |= (((uint64_t)IVAL(pdata,4)) << 32); + position_information = PULL_LE_U64(pdata, 0); DEBUG(10,("smb_file_position_information: Set file position " "information for file %s to %.0f\n", fsp_str_dbg(fsp),