From: Jeremy Allison Date: Fri, 6 Mar 2009 05:51:26 +0000 (-0800) Subject: Get the sense of the integer wrap test the right way around. Sorry. X-Git-Tag: samba-3.0.36~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=568ef20412f4e2bf0872da5beb08fcbe1aa3fc5e;p=thirdparty%2Fsamba.git Get the sense of the integer wrap test the right way around. Sorry. Jeremy. (cherry picked from commit bdf46ea491801cdf8ff6f42c0a1ef51080cfc410) --- diff --git a/source/rpc_server/srv_pipe.c b/source/rpc_server/srv_pipe.c index 868f4d03585..3e316f564eb 100644 --- a/source/rpc_server/srv_pipe.c +++ b/source/rpc_server/srv_pipe.c @@ -2063,7 +2063,7 @@ BOOL api_pipe_schannel_process(pipes_struct *p, prs_struct *rpc_in, uint32 *p_ss auth_len = p->hdr.auth_len; if (auth_len < RPC_AUTH_SCHANNEL_SIGN_OR_SEAL_CHK_LEN || - auth_len < RPC_HEADER_LEN + + auth_len > RPC_HEADER_LEN + RPC_HDR_REQ_LEN + RPC_HDR_AUTH_LEN + auth_len) {