File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1540,6 +1540,8 @@ static bool _mdns_service_match_ptr_question(const mdns_service_t *service, cons
1540
1540
if (!_mdns_service_match (service , question -> service , question -> proto , NULL )) {
1541
1541
return false;
1542
1542
}
1543
+ // The question parser stores anything before _type._proto in question->host
1544
+ // So the question->host can be subtype or instance name based on its content
1543
1545
if (question -> sub ) {
1544
1546
mdns_subtype_t * subtype = service -> subtype ;
1545
1547
while (subtype ) {
@@ -1550,6 +1552,11 @@ static bool _mdns_service_match_ptr_question(const mdns_service_t *service, cons
1550
1552
}
1551
1553
return false;
1552
1554
}
1555
+ if (question -> host ) {
1556
+ if (strcasecmp (service -> instance , question -> host ) != 0 ) {
1557
+ return false;
1558
+ }
1559
+ }
1553
1560
return true;
1554
1561
}
1555
1562
You can’t perform that action at this time.
0 commit comments