projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4c2c4f
)
gcrypt: Use ROUND_DOWN() macro.
author
Andre Noll
<maan@tuebingen.mpg.de>
Thu, 28 Dec 2017 20:48:10 +0000
(21:48 +0100)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 25 Feb 2018 23:10:28 +0000
(
00:10
+0100)
gcrypt.c
patch
|
blob
|
history
diff --git
a/gcrypt.c
b/gcrypt.c
index
b21cf72
..
8d6db34
100644
(file)
--- 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;