From 3b8f76aa512338ec91104240d28d8f32246b5eb6 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 14 Jan 2008 19:00:23 +0000 Subject: r17611@catbus: nickm | 2008-01-14 13:44:16 -0500 add some missing checks for failing return values. svn:r13130 --- src/or/control.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/or/control.c') diff --git a/src/or/control.c b/src/or/control.c index 9e28e06ffe..d216339b30 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1500,9 +1500,9 @@ getinfo_helper_dir(control_connection_t *control_conn, question += strlen("extra-info/digest/"); if (strlen(question) == HEX_DIGEST_LEN) { char d[DIGEST_LEN]; - signed_descriptor_t *sd; - base16_decode(d, sizeof(d), question, strlen(question)); - sd = extrainfo_get_by_descriptor_digest(d); + signed_descriptor_t *sd = NULL; + if (base16_decode(d, sizeof(d), question, strlen(question))==0) + sd = extrainfo_get_by_descriptor_digest(d); if (sd) { const char *body = signed_descriptor_get_body(sd); if (body) -- cgit v1.2.3-54-g00ecf