s3 rpc server: set on-wire handle type explicitly
authorAlexander Bokovoy <ab@samba.org>
Wed, 29 Apr 2020 08:54:07 +0000 (11:54 +0300)
committerAlexander Bokovoy <ab@samba.org>
Thu, 30 Apr 2020 07:09:55 +0000 (07:09 +0000)
commit3be17c891b61a7cbe3b529a2dc0d68753e81de35
tree0d5fc1ddba4be6aa5ced2e55b096a31adfa65746
parent954d877a2eefd985479f35a99c2dd8c804f15cc0
s3 rpc server: set on-wire handle type explicitly

Since wire_handle.handle_type is uint32_t, we can simply assign uint8_t
handle type to it without using SIVAL() macros. Further unify with s4
RPC server code flow.

Fixes CID 1462616
>>> CID 1462616:    (CONSTANT_EXPRESSION_RESULT)
>>> "(uint32_t)handle_type >> 16" is 0 regardless of the values of its operands. This occurs as a value.
284             SIVAL(&rpc_hnd->wire_handle.handle_type, 0 , handle_type);

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Thu Apr 30 07:09:55 UTC 2020 on sn-devel-184
source3/rpc_server/rpc_handles.c