projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix warnings found by GCC 4.9.
[tinc]
/
src
/
protocol_key.c
diff --git
a/src/protocol_key.c
b/src/protocol_key.c
index
b55e830
..
22d2ff5
100644
(file)
--- a/
src/protocol_key.c
+++ b/
src/protocol_key.c
@@
-159,7
+159,7
@@
bool send_ans_key(node_t *to) {
// Create a new key
if (1 != RAND_bytes((unsigned char *)to->inkey, to->inkeylength)) {
int err = ERR_get_error();
// Create a new key
if (1 != RAND_bytes((unsigned char *)to->inkey, to->inkeylength)) {
int err = ERR_get_error();
- logger(LOG_ERR, "Failed to generate random for key (%s)",
"SEND_ANS_KEY",
ERR_error_string(err, NULL));
+ logger(LOG_ERR, "Failed to generate random for key (%s)", ERR_error_string(err, NULL));
return false; // Do not send insecure keys, let connection attempt fail.
}
return false; // Do not send insecure keys, let connection attempt fail.
}