]> git.ipfire.org Git - thirdparty/samba.git/commit
libcli:auth: Remove unreachable code (CID 1272968)
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 5 Oct 2023 23:36:13 +0000 (12:36 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 28 Aug 2024 04:24:39 +0000 (04:24 +0000)
commit0425b0fcbee2ee3028ae40a10fa1471da52e2605
treee487c56bcdd2d40d2df7b20df11e026b01dd4575
parent228dd73cae7ee6181c01f0aca87830afa8bf19d5
libcli:auth: Remove unreachable code (CID 1272968)

For us to reach the statement ‘if (0 < len1)’, ‘len1’ must be equal to
‘len2’, and they must not both be equal to zero. That cannot be the case
if ‘len1’ is equal to zero, and therefore the ‘else’ branch cannot be
reached.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
libcli/auth/msrpc_parse.c