projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
779c43b
)
network plugin: output_len is unsigned
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:24:08 +0000
(11:24 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:24:08 +0000
(11:24 +0200)
[src/network.c:937]: (style) Checking if unsigned variable 'output_len' is less than zero.
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
ccd033b
..
bf1f2ab
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-934,7
+934,7
@@
static int parse_part_string (void **ret_buffer, size_t *ret_buffer_len,
uint16_t pkg_length;
size_t payload_size;
- if (output_len
<
= 0)
+ if (output_len
=
= 0)
return (EINVAL);
if (buffer_len < header_size)