X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=remote.c;h=8e6e37eedd5572911de2032dfca1ce960a529952;hb=bee7c7e0dfdf741010258e3dbd6fe1521efec326;hp=38239babac0a23be82291f578725d352d6ce08da;hpb=54f726f68ba8b027a26507621c7d999f91750a07;p=project%2Fusteer.git diff --git a/remote.c b/remote.c index 38239ba..8e6e37e 100644 --- a/remote.c +++ b/remote.c @@ -213,7 +213,7 @@ interface_get_host(const char *addr, unsigned long id) avl_insert(&remote_hosts, &host->avl); out: - if (host->addr && strcmp(host->addr, addr) != 0) + if (host->addr && !strcmp(host->addr, addr)) return host; free(host->addr);