Skip to content

Commit dcc33d6

Browse files
committed
fix(mdns): correct server initialization condition in mdns_browse_new
1 parent 7b1c83b commit dcc33d6

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)