Skip to content

Commit

Permalink
Update src/app/br_discover.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Kangping <[email protected]>
  • Loading branch information
ZhangLe2016 and wgtdkp committed Apr 25, 2024
1 parent 9092225 commit af38b65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/br_discover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ Error DiscoverBorderAgent(BorderAgentHandler aBorderAgentHandler, size_t aTimeou
#else // __NetBSD__ || __FreeBSD__ || __APPLE__
rval = setsockopt(socket, IPPROTO_IPV6, IP_BOUND_IF, aNetIf.c_str(), aNetIf.size());
#endif // __linux__
VerifyOrDie(rval == 0);
VerifyOrExit(rval == 0,
error = ERROR_INVALID_ARGS("failed to bind network interface {}: {}", aNetIf, strerror(errno)));
}

if (mdns_query_send(socket, kMdnsQueryType, kServiceName, strlen(kServiceName), buf, sizeof(buf)) != 0)
Expand Down

0 comments on commit af38b65

Please sign in to comment.