We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b531772 commit 53f268eCopy full SHA for 53f268e
src/tools.cc
@@ -229,7 +229,7 @@ bool address2string(const struct sockaddr* address,
229
(IN6_IS_ADDR_LINKLOCAL(&ipv6address->sin6_addr) ||
230
IN6_IS_ADDR_MC_LINKLOCAL(&ipv6address->sin6_addr)) ) {
231
ifname = if_indextoname(ipv6address->sin6_scope_id, (char*)&ifnamebuffer);
232
- if(ifname = nullptr) {
+ if(ifname == nullptr) {
233
snprintf((char*)&scope, sizeof(scope), "%%%s", ifname);
234
}
235
else {
0 commit comments