]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
MSVC build issue: it can't tell that tor_assert(0) aborts.
authorNick Mathewson <nickm@torproject.org>
Mon, 14 May 2012 17:07:27 +0000 (13:07 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 14 May 2012 17:07:27 +0000 (13:07 -0400)
src/or/connection.c
src/or/networkstatus.c

index d37953349463c2b91cdfbd74bd0ec07ccfe12d44..0c970cc3b43cf91b55cfdbf713a73528fc80b1ca 100644 (file)
@@ -778,7 +778,8 @@ create_unix_sockaddr(const char *listenaddress, char **readable_address,
          "Unix domain sockets not supported, yet we tried to create one.");
   *len_out = 0;
   tor_assert(0);
-};
+  return NULL;
+}
 #endif /* HAVE_SYS_UN_H */
 
 /** Warn that an accept or a connect has failed because we're running up
index 910b99c5c00e82e2905f0f4348be24bf3e5832f6..3646ee684474d8c91dd6b8e238c117fa5ea804ef 100644 (file)
@@ -1463,8 +1463,10 @@ networkstatus_get_latest_consensus_by_flavor(consensus_flavor_t f)
     return current_ns_consensus;
   else if (f == FLAV_MICRODESC)
     return current_md_consensus;
-  else
+  else {
     tor_assert(0);
+    return NULL;
+  }
 }
 
 /** Return the most recent consensus that we have downloaded, or NULL if it is