diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-06 22:23:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-06 22:23:12 +0000 |
commit | fdb58e8ea3eeccc48db1881926b43dcec211c9de (patch) | |
tree | 15de60cce068b3052d5e3870ba6bae1d1f0818a9 /src/or/routerlist.c | |
parent | f24519e4b9aeb39cbed50283936b86220c199e81 (diff) | |
download | tor-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.c | 4 |
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; |