diff options
author | Volker Lendecke <vl@samba.org> | 2012-02-25 21:17:40 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-02-25 22:14:38 +0100 |
commit | bd6ff4dbab68b34b7903ebbde470b970e45dcdb7 (patch) | |
tree | 4d4a213a9b121fa450f18e41ad2dcaa0c39a5c6b | |
parent | fe3274d9cb576f82366070a25a4a7eef4bd43708 (diff) | |
download | samba-bd6ff4dbab68b34b7903ebbde470b970e45dcdb7.tar.gz samba-bd6ff4dbab68b34b7903ebbde470b970e45dcdb7.tar.bz2 samba-bd6ff4dbab68b34b7903ebbde470b970e45dcdb7.zip |
libcli: Remove a pointless check
"n" is size_t, so it is always >=0.
-rw-r--r-- | libcli/auth/msrpc_parse.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libcli/auth/msrpc_parse.c b/libcli/auth/msrpc_parse.c index 8b64e98feb..d499d9eb7a 100644 --- a/libcli/auth/msrpc_parse.c +++ b/libcli/auth/msrpc_parse.c @@ -177,9 +177,7 @@ NTSTATUS msrpc_gen(TALLOC_CTX *mem_ctx, n = pointers[i].length; SSVAL(blob->data, data_ofs, n); data_ofs += 2; - if (n >= 0) { - memcpy(blob->data+data_ofs, pointers[i].data, n); - } + memcpy(blob->data+data_ofs, pointers[i].data, n); data_ofs += n; break; case 'd': |