projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
network plugin: Fix use of a uninitialized variable.
[collectd.git]
/
src
/
iptables.c
diff --git
a/src/iptables.c
b/src/iptables.c
index
fb887da
..
6f1030f
100644
(file)
--- a/
src/iptables.c
+++ b/
src/iptables.c
@@
-29,6
+29,8
@@
#include "plugin.h"
#include "configfile.h"
#include "plugin.h"
#include "configfile.h"
+#include <sys/socket.h>
+
#if OWN_LIBIPTC
# include "libiptc/libiptc.h"
# include "libiptc/libip6tc.h"
#if OWN_LIBIPTC
# include "libiptc/libiptc.h"
# include "libiptc/libip6tc.h"
@@
-89,7
+91,7
@@
static int chain_num = 0;
static int iptables_config (const char *key, const char *value)
{
/* int ip_value; */
static int iptables_config (const char *key, const char *value)
{
/* int ip_value; */
- protocol_version_t ip_version;
+ protocol_version_t ip_version
= 0
;
if (strcasecmp (key, "Chain") == 0)
ip_version = IPV4;
if (strcasecmp (key, "Chain") == 0)
ip_version = IPV4;