diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-06-08 01:20:31 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-06-08 01:20:31 +0200 |
commit | 6c10fd5e3e563791008a22803a536e7436fee073 (patch) | |
tree | 15515ede47c465a29facb2d4be34ebee23ea2711 /client.c | |
parent | 2d8bfaab51c2dd42d73c348e238802912e870b22 (diff) |
log_bin2hex_sodium cares about logging prio set, fixed missing cleanup on bufferevent failure
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -266,7 +266,7 @@ int main(int argc, char ** argv) LOG(ERROR, "Sodium keypair generation failed"); cleanup_and_exit(&ev_base, &ev_sig, &my_keypair, &c, 5); } - log_bin2hex_sodium("Client public key", my_keypair->publickey, sizeof(my_keypair->publickey)); + log_bin2hex_sodium(NOTICE, "Client public key", my_keypair->publickey, sizeof(my_keypair->publickey)); /* create global connection state */ c = new_connection_to_server(my_keypair); @@ -281,7 +281,7 @@ int main(int argc, char ** argv) LOG(ERROR, "Could not parse server public key: %s", opts.key_string); cleanup_and_exit(&ev_base, &ev_sig, &my_keypair, &c, 7); } - log_bin2hex_sodium("Server public key", c->peer_publickey, sizeof(c->peer_publickey)); + log_bin2hex_sodium(NOTICE, "Server public key", c->peer_publickey, sizeof(c->peer_publickey)); ev_base = event_base_new(); if (ev_base == NULL) { |