Browse Source

Handle null conn->requested_resource rather than assert

Per arma's comments in bug1138
Robert Hogan 15 years ago
parent
commit
22ab997e83
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/directory.c

+ 1 - 1
src/or/directory.c

@@ -696,7 +696,7 @@ connection_dir_bridge_routerdesc_failed(dir_connection_t *conn)
   tor_assert(conn->requested_resource);
   tor_assert(conn->requested_resource);
   /* Requests for bridge descriptors are in the form 'fp/', so ignore
   /* Requests for bridge descriptors are in the form 'fp/', so ignore
      anything else. */
      anything else. */
-  if (conn->requested_resource && strcmpstart(conn->requested_resource,"fp/"))
+  if (!conn->requested_resource || strcmpstart(conn->requested_resource,"fp/"))
     return;
     return;
 
 
   which = smartlist_create();
   which = smartlist_create();