git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe3274d
)
libcli: Remove a pointless check
author
Volker Lendecke
<vl@samba.org>
Sat, 25 Feb 2012 20:17:40 +0000
(21:17 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 25 Feb 2012 21:14:38 +0000
(22:14 +0100)
"n" is size_t, so it is always >=0.
libcli/auth/msrpc_parse.c
patch
|
blob
|
history
diff --git
a/libcli/auth/msrpc_parse.c
b/libcli/auth/msrpc_parse.c
index 8b64e98feb26d67dbb48a4661f97e240662e67a9..d499d9eb7a1f8bc60fe9568d685f60e1f720d8ca 100644
(file)
--- 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':