diff options
author | Donncha O'Cearbhaill <donncha@donncha.is> | 2015-05-08 09:50:13 +0100 |
---|---|---|
committer | Donncha O'Cearbhaill <donncha@donncha.is> | 2015-05-08 10:16:44 +0100 |
commit | 4fc21e8dbcd31bf87e18ae45c530fbfc6a5bfc98 (patch) | |
tree | b58783132cabd224572f75237d46def815f2990f | |
parent | e086db795238da9187aa9824fda3d708cff10bf6 (diff) | |
download | tor-4fc21e8dbcd31bf87e18ae45c530fbfc6a5bfc98.tar.gz tor-4fc21e8dbcd31bf87e18ae45c530fbfc6a5bfc98.zip |
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. This bug is not in any released Tor.
-rw-r--r-- | src/or/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index 780dea58e0..d4e106eb98 100644 --- a/src/or/control.c +++ b/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; |