mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Handle null conn->requested_resource rather than assert
Per arma's comments in bug1138
This commit is contained in:
parent
5799cdd9d3
commit
22ab997e83
@ -696,7 +696,7 @@ connection_dir_bridge_routerdesc_failed(dir_connection_t *conn)
|
||||
tor_assert(conn->requested_resource);
|
||||
/* Requests for bridge descriptors are in the form 'fp/', so ignore
|
||||
anything else. */
|
||||
if (conn->requested_resource && strcmpstart(conn->requested_resource,"fp/"))
|
||||
if (!conn->requested_resource || strcmpstart(conn->requested_resource,"fp/"))
|
||||
return;
|
||||
|
||||
which = smartlist_create();
|
||||
|
Loading…
Reference in New Issue
Block a user