Ticket #6505: patch-6505

File patch-6505, 536 bytes (added by zwol, 7 years ago)

patch

Line 
1diff --git a/src/or/control.c b/src/or/control.c
2index ce571f9..986f998 100644
3--- a/src/or/control.c
4+++ b/src/or/control.c
5@@ -1761,6 +1761,9 @@ getinfo_helper_dir(control_connection_t *control_conn,
6       *answer = read_file_to_str(filename, RFTS_IGNORE_MISSING, NULL);
7       tor_free(filename);
8     }
9+    if (!*answer) {
10+      *answer = tor_strdup("");
11+    }
12   } else if (!strcmp(question, "network-status")) { /* v1 */
13     routerlist_t *routerlist = router_get_routerlist();
14     if (!routerlist || !routerlist->routers ||