aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-06 22:23:12 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-06 22:23:12 +0000
commitfdb58e8ea3eeccc48db1881926b43dcec211c9de (patch)
tree15de60cce068b3052d5e3870ba6bae1d1f0818a9 /src/or/routerlist.c
parentf24519e4b9aeb39cbed50283936b86220c199e81 (diff)
downloadtor-fdb58e8ea3eeccc48db1881926b43dcec211c9de.tar
tor-fdb58e8ea3eeccc48db1881926b43dcec211c9de.tar.gz
Set routerinfo->addr properly for own routerinfo; do casei routerinfo compare
svn:r1514
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 0f29b34e7..526559c9f 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -311,11 +311,11 @@ routerinfo_t *router_get_by_nickname(char *nickname)
for(i=0;i<routerlist->n_routers;i++) {
router = routerlist->routers[i];
- if (0 == strcmp(router->nickname, nickname))
+ if (0 == strcasecmp(router->nickname, nickname))
return router;
}
router = router_get_my_routerinfo();
- if (router && 0 == strcmp(router->nickname, nickname))
+ if (router && 0 == strcasecmp(router->nickname, nickname))
return router;
return NULL;