Skip to content

Commit

Permalink
[crypto] fix log information
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Aug 21, 2019
1 parent 4372e49 commit 731da3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libknet/crypto.c
Expand Up @@ -151,8 +151,6 @@ int crypto_init(
goto out;
}

log_debug(knet_h, KNET_SUB_CRYPTO, "security network overhead: %zu", knet_h->sec_header_size);

out:
if (!err) {
knet_h->crypto_instance = new;
Expand All @@ -161,6 +159,8 @@ int crypto_init(
knet_h->sec_hash_size = new->sec_hash_size;
knet_h->sec_salt_size = new->sec_salt_size;

log_debug(knet_h, KNET_SUB_CRYPTO, "security network overhead: %zu", knet_h->sec_header_size);

if (current) {
if (crypto_modules_cmds[current->model].ops->fini != NULL) {
crypto_modules_cmds[current->model].ops->fini(knet_h, current);
Expand Down

0 comments on commit 731da3e

Please sign in to comment.