]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Handle null conn->requested_resource rather than assert
authorRobert Hogan <robert@roberthogan.net>
Sun, 12 Sep 2010 13:10:16 +0000 (14:10 +0100)
committerRobert Hogan <robert@roberthogan.net>
Sun, 12 Sep 2010 13:10:16 +0000 (14:10 +0100)
Per arma's comments in bug1138

src/or/directory.c

index de1422565a3742276d34de513e77cb56f2b38e28..388410c8af80ac60e355e4a7d474d2649b92a8e5 100644 (file)
@@ -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();