mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-11-28 18:41:06 +00:00
Replace mask assignment position
This commit is contained in:
parent
7c134400ae
commit
c8a2956c4e
|
|
@ -3105,7 +3105,6 @@ addr_pool_insert(struct addr_pool *addr_pool, const char *addr, uint8 mask)
|
||||||
}
|
}
|
||||||
|
|
||||||
next->next = NULL;
|
next->next = NULL;
|
||||||
next->mask = mask;
|
|
||||||
|
|
||||||
if (os_socket_inet_network(true, addr, &target) != BHT_OK) {
|
if (os_socket_inet_network(true, addr, &target) != BHT_OK) {
|
||||||
// If parsing IPv4 fails, try IPv6
|
// If parsing IPv4 fails, try IPv6
|
||||||
|
|
@ -3120,6 +3119,7 @@ addr_pool_insert(struct addr_pool *addr_pool, const char *addr, uint8 mask)
|
||||||
wasm_runtime_free(next);
|
wasm_runtime_free(next);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
next->mask = mask;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
next->type = IPv4;
|
next->type = IPv4;
|
||||||
|
|
@ -3128,6 +3128,7 @@ addr_pool_insert(struct addr_pool *addr_pool, const char *addr, uint8 mask)
|
||||||
wasm_runtime_free(next);
|
wasm_runtime_free(next);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
next->mask = mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* attach with */
|
/* attach with */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user