Skip to content
Permalink
Browse files
Fix segfault in HSPOST command introduce with feature #3523
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 27f006bcad4a1a27339130ffb09637f4baaf7dbe
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/or/control.c
@@ -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;

0 comments on commit 27f006b

Please sign in to comment.