I prefer something like this:

```
BOOL hostsDoMatch = YES;
	for (NSInteger index = 0; index < [host1Components count]; index++){
		NSString *component1 = [host1Components objectAtIndex:index];
		NSString *component2 = [host2Components objectAtIndex:index];
        if ([component1 isEqualToString:@"*"] == NO && [component2 isEqualToString:@"*"] == NO && [component1 isEqualToString:component2] == NO) {
			hostsDoMatch = NO;
			break;
        }		
	}
 
    return hostsDoMatch;
```