projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7a58a2f
)
network plugin: Use the complain mechanism to inform the user about ignored signatures.
author
Florian Forster
<octo@huhu.verplant.org>
Wed, 1 Sep 2010 18:36:40 +0000
(20:36 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Wed, 1 Sep 2010 18:36:40 +0000
(20:36 +0200)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
5bbdd89
..
242b9d2
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-31,6
+31,7
@@
#include "utils_fbhash.h"
#include "utils_avltree.h"
#include "utils_cache.h"
#include "utils_fbhash.h"
#include "utils_avltree.h"
#include "utils_cache.h"
+#include "utils_complain.h"
#include "network.h"
#include "network.h"
@@
-899,6
+900,8
@@
static int parse_packet (sockent_t *se,
static int parse_part_sign_sha256 (sockent_t *se, /* {{{ */
void **ret_buffer, size_t *ret_buffer_len, int flags)
{
static int parse_part_sign_sha256 (sockent_t *se, /* {{{ */
void **ret_buffer, size_t *ret_buffer_len, int flags)
{
+ static c_complain_t complain_no_users = C_COMPLAIN_INIT_STATIC;
+
char *buffer;
size_t buffer_len;
size_t buffer_offset;
char *buffer;
size_t buffer_len;
size_t buffer_offset;
@@
-920,8
+923,9
@@
static int parse_part_sign_sha256 (sockent_t *se, /* {{{ */
if (se->data.server.userdb == NULL)
{
if (se->data.server.userdb == NULL)
{
- NOTICE ("network plugin: Received signed network packet but can't verify "
- "it because no user DB has been configured. Will accept it.");
+ c_complain (LOG_NOTICE, &complain_no_users,
+ "network plugin: Received signed network packet but can't verify it "
+ "because no user DB has been configured. Will accept it.");
return (0);
}
return (0);
}