remove some unused code (i think)

svn:r6539
This commit is contained in:
Roger Dingledine 2006-06-05 08:02:04 +00:00
parent bf09898f79
commit 152d6d13b4

View File

@ -431,13 +431,11 @@ connection_t *
connection_or_connect(uint32_t addr, uint16_t port, const char *id_digest) connection_or_connect(uint32_t addr, uint16_t port, const char *id_digest)
{ {
connection_t *conn; connection_t *conn;
routerinfo_t *me;
or_options_t *options = get_options(); or_options_t *options = get_options();
tor_assert(id_digest); tor_assert(id_digest);
if (server_mode(options) && (me=router_get_my_routerinfo()) && if (server_mode(options) && router_digest_is_me(id_digest)) {
router_digest_is_me(id_digest)) {
log_info(LD_PROTOCOL,"Client asked me to connect to myself. Refusing."); log_info(LD_PROTOCOL,"Client asked me to connect to myself. Refusing.");
return NULL; return NULL;
} }