s3/libsmb: clang: Fix 'The left operand of '>' or '<' is a garbage value
commite1ef99223684e830e4bd5c8e7b33323e25ffafc1
authorNoel Power <noel.power@suse.com>
Wed, 14 Aug 2019 13:42:06 +0000 (14 14:42 +0100)
committerGary Lockyer <gary@samba.org>
Tue, 27 Aug 2019 23:04:37 +0000 (27 23:04 +0000)
treeb77c181b388d9793bacf3258e48a0f9972c2874e
parent78ca70925ca00ae96065db4fd7a963cb999f2f3d
s3/libsmb: clang: Fix 'The left operand of '>' or '<' is a garbage value

Fixes:

source3/libsmb/clireadwrite.c:601:15: warning: The left operand of '>' is a garbage value <--[clang]
        if (received > expected) {

source3/libsmb/clireadwrite.c:799:16: warning: The left operand of '<' is a garbage value <--[clang]
        if ((received < 0) || (received > state->buflen)) {
             ~~~~~~~~ ^

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/libsmb/clireadwrite.c