From 568dc27a1943305f6e11a9a497f56a6aabe27c99 Mon Sep 17 00:00:00 2001 From: nikkolasg Date: Fri, 17 Jun 2016 10:41:45 -0400 Subject: Make base16_decodes return number of decoded bytes base16_decodes() now returns the number of decoded bytes. It's interface changes from returning a "int" to a "ssize_t". Every callsite now checks the returned value. Fixes #14013 Signed-off-by: David Goulet --- src/or/networkstatus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/networkstatus.c') diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 5a91dda386..da51698da4 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -2216,7 +2216,7 @@ getinfo_helper_networkstatus(control_connection_t *conn, if (*q == '$') ++q; - if (base16_decode(d, DIGEST_LEN, q, strlen(q))) { + if (base16_decode(d, DIGEST_LEN, q, strlen(q)) != DIGEST_LEN) { *errmsg = "Data not decodeable as hex"; return -1; } -- cgit v1.2.3-54-g00ecf