projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1743 from rubenk/apcups-coverity
[collectd.git]
/
src
/
utils_dns.c
diff --git
a/src/utils_dns.c
b/src/utils_dns.c
index
71a14d8
..
991d346
100644
(file)
--- a/
src/utils_dns.c
+++ b/
src/utils_dns.c
@@
-156,9
+156,6
@@
typedef int (printer)(const char *, ...);
/*
* Global variables
*/
/*
* Global variables
*/
-int qtype_counts[T_MAX];
-int opcode_counts[OP_MAX];
-int qclass_counts[C_MAX];
#if HAVE_PCAP_H
static pcap_t *pcap_obj = NULL;
#if HAVE_PCAP_H
static pcap_t *pcap_obj = NULL;
@@
-212,7
+209,7
@@
static void ignore_list_add (const struct in6_addr *addr)
if (ignore_list_match (addr) != 0)
return;
if (ignore_list_match (addr) != 0)
return;
- new = malloc (sizeof (
ip_list_t
));
+ new = malloc (sizeof (
*new
));
if (new == NULL)
{
perror ("malloc");
if (new == NULL)
{
perror ("malloc");
@@
-418,11
+415,6
@@
handle_dns(const char *buf, int len)
qh.length = (uint16_t) len;
qh.length = (uint16_t) len;
- /* gather stats */
- qtype_counts[qh.qtype]++;
- qclass_counts[qh.qclass]++;
- opcode_counts[qh.opcode]++;
-
if (Callback != NULL)
Callback (&qh);
if (Callback != NULL)
Callback (&qh);