Skip to content

Commit 53f268e

Browse files
committed
Bugfix: Fix for IPv6 scope handling.
1 parent b531772 commit 53f268e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ bool address2string(const struct sockaddr* address,
229229
(IN6_IS_ADDR_LINKLOCAL(&ipv6address->sin6_addr) ||
230230
IN6_IS_ADDR_MC_LINKLOCAL(&ipv6address->sin6_addr)) ) {
231231
ifname = if_indextoname(ipv6address->sin6_scope_id, (char*)&ifnamebuffer);
232-
if(ifname = nullptr) {
232+
if(ifname == nullptr) {
233233
snprintf((char*)&scope, sizeof(scope), "%%%s", ifname);
234234
}
235235
else {

0 commit comments

Comments
 (0)