summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-21 18:58:26 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-02 17:46:02 +0100
commit5c73ecd2b3b178dd57d7251342e966ea4f8044e0 (patch)
tree57cf314c29a2c7720df37d30e9804ecb383c5951 /source4/rpc_server
parent8919a58583f3e7c610d4182ac589f1445606e46f (diff)
downloadsamba-5c73ecd2b3b178dd57d7251342e966ea4f8044e0.tar.gz
samba-5c73ecd2b3b178dd57d7251342e966ea4f8044e0.tar.bz2
samba-5c73ecd2b3b178dd57d7251342e966ea4f8044e0.zip
s4:echo RPC - make this one "signed-safe"
"i" needs to be unsigned here since it counts until "r->in.len" which itself is unsigned and not signed.
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/echo/rpc_echo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/echo/rpc_echo.c b/source4/rpc_server/echo/rpc_echo.c
index 8bcee7d925..ef80b26523 100644
--- a/source4/rpc_server/echo/rpc_echo.c
+++ b/source4/rpc_server/echo/rpc_echo.c
@@ -54,7 +54,7 @@ static NTSTATUS dcesrv_echo_SinkData(struct dcesrv_call_state *dce_call, TALLOC_
static NTSTATUS dcesrv_echo_SourceData(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct echo_SourceData *r)
{
- int i;
+ unsigned int i;
r->out.data = talloc_array(mem_ctx, uint8_t, r->in.len);
if (!r->out.data) {