summaryrefslogtreecommitdiff
path: root/libcli/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-25 21:17:40 +0100
committerVolker Lendecke <vl@samba.org>2012-02-25 22:14:38 +0100
commitbd6ff4dbab68b34b7903ebbde470b970e45dcdb7 (patch)
tree4d4a213a9b121fa450f18e41ad2dcaa0c39a5c6b /libcli/auth
parentfe3274d9cb576f82366070a25a4a7eef4bd43708 (diff)
downloadsamba-bd6ff4dbab68b34b7903ebbde470b970e45dcdb7.tar.gz
samba-bd6ff4dbab68b34b7903ebbde470b970e45dcdb7.tar.bz2
samba-bd6ff4dbab68b34b7903ebbde470b970e45dcdb7.zip
libcli: Remove a pointless check
"n" is size_t, so it is always >=0.
Diffstat (limited to 'libcli/auth')
-rw-r--r--libcli/auth/msrpc_parse.c4
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':