From ab98d5b8b03e0e2fdcf010fc8f6a6b0ab8f87564 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 28 Dec 2017 21:48:10 +0100 Subject: [PATCH] gcrypt: Use ROUND_DOWN() macro. --- gcrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcrypt.c b/gcrypt.c index b21cf722..8d6db349 100644 --- a/gcrypt.c +++ b/gcrypt.c @@ -406,7 +406,7 @@ int apc_get_pubkey(const char *key_file, struct asymmetric_key **result) ret = -E_SEXP_BUILD; goto release_n; } - ret = nr_scanned / 32 * 32; + ret = ROUND_DOWN(nr_scanned, 32); PARA_INFO_LOG("successfully read %d bit ssh public key\n", ret * 8); key = para_malloc(sizeof(*key)); key->num_bytes = ret; -- 2.39.5