fix route cmp function

This commit is contained in:
Yo-An Lin 2014-06-12 21:01:16 +08:00
parent f74126e0a8
commit 34e779c84a

View file

@ -807,12 +807,6 @@ inline int r3_route_cmp(const route *r1, const match_entry *r2) {
} }
} }
if ( r1->path && r2->path ) {
if ( strcmp(r1->path, r2->path) != 0 ) {
return -1;
}
}
if ( r1->host && r2->host ) { if ( r1->host && r2->host ) {
if (strcmp(r1->host, r2->host) != 0 ) { if (strcmp(r1->host, r2->host) != 0 ) {
return -1; return -1;