Skip to content

Commit

Permalink
Fix segfault in HSPOST command introduce with feature #3523
Browse files Browse the repository at this point in the history
Checking if node->rs->is_hs_dir when the router_status for the node does
not exist results in a segfault.
  • Loading branch information
DonnchaC committed May 8, 2015
1 parent e086db7 commit 27f006b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/or/control.c
Expand Up @@ -3452,7 +3452,7 @@ handle_control_hspost(control_connection_t *conn,
const char *server = arg + strlen(opt_server);
const node_t *node = node_get_by_hex_id(server);

if (!node) {
if (!node || !node->rs) {
connection_printf_to_buf(conn, "552 Server \"%s\" not found\r\n",
server);
goto done;
Expand Down

0 comments on commit 27f006b

Please sign in to comment.