summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-01-14 19:00:23 +0000
committerNick Mathewson <nickm@torproject.org>2008-01-14 19:00:23 +0000
commit3b8f76aa512338ec91104240d28d8f32246b5eb6 (patch)
treea0cfda3a8a0007ecea1bfaa242e7f5d1eda378e3 /src/or/control.c
parente49229caf8645564646354c6f3670db2cab26583 (diff)
downloadtor-3b8f76aa512338ec91104240d28d8f32246b5eb6.tar.gz
tor-3b8f76aa512338ec91104240d28d8f32246b5eb6.zip
r17611@catbus: nickm | 2008-01-14 13:44:16 -0500
add some missing checks for failing return values. svn:r13130
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c6
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)