diff options
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |