Skip to content

Commit e1e0908

Browse files
authored
Merge pull request #1017 from gytxxsy/fix/fix_a_bug_in_mdns_browse_new
fix(mdns): correct server initialization condition in mdns_browse_new (IDFGH-17318)
2 parents 70d42b7 + dcc33d6 commit e1e0908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mdns/mdns_browser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ mdns_browse_t *mdns_browse_new(const char *service, const char *proto, mdns_brow
618618
{
619619
mdns_browse_t *browse = NULL;
620620

621-
if (mdns_priv_is_server_init() || mdns_utils_str_null_or_empty(service) || mdns_utils_str_null_or_empty(proto)) {
621+
if (!mdns_priv_is_server_init() || mdns_utils_str_null_or_empty(service) || mdns_utils_str_null_or_empty(proto)) {
622622
return NULL;
623623
}
624624

0 commit comments

Comments
 (0)