git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d18a8d
)
Fix gcc -O3 warnings.
author
Jeremy Allison
<jra@samba.org>
Fri, 27 Jun 2008 04:16:43 +0000
(21:16 -0700)
committer
Jeremy Allison
<jra@samba.org>
Fri, 27 Jun 2008 04:16:43 +0000
(21:16 -0700)
Jeremy.
source/rpc_client/cli_pipe.c
patch
|
blob
|
history
diff --git
a/source/rpc_client/cli_pipe.c
b/source/rpc_client/cli_pipe.c
index 47fcbfe5ab37785e389b8e380b3cdd10a1bae41b..3b41e741ef6af6dbc5fcbcf1d59e47a00607af88 100644
(file)
--- a/
source/rpc_client/cli_pipe.c
+++ b/
source/rpc_client/cli_pipe.c
@@
-446,8
+446,8
@@
static NTSTATUS cli_pipe_validate_rpc_response(struct rpc_pipe_client *cli, RPC_
return NT_STATUS_INVALID_PARAMETER;
}
- if (prhdr->auth_len + RPC_HDR_AUTH_LEN < prhdr->auth_len ||
- prhdr->auth_len +
RPC_HDR_AUTH_LEN <
RPC_HDR_AUTH_LEN) {
+ if (prhdr->auth_len +
(unsigned int)
RPC_HDR_AUTH_LEN < prhdr->auth_len ||
+ prhdr->auth_len +
(unsigned int)RPC_HDR_AUTH_LEN < (unsigned int)
RPC_HDR_AUTH_LEN) {
/* Integer wrap attempt. */
return NT_STATUS_INVALID_PARAMETER;
}