mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix a compile warning on win32.
svn:r18099
This commit is contained in:
+1
-1
@@ -2212,7 +2212,7 @@ evdns_set_default_outgoing_bind_address(const struct sockaddr *addr,
|
||||
{
|
||||
memset(&global_bind_address, 0, sizeof(global_bind_address));
|
||||
if (addr) {
|
||||
assert(addrlen <= sizeof(global_bind_address));
|
||||
assert(addrlen <= (socklen_t)sizeof(global_bind_address));
|
||||
memcpy(&global_bind_address, addr, addrlen);
|
||||
global_bind_addrlen = addrlen;
|
||||
global_bind_addr_is_set = 1;
|
||||
|
||||
Reference in New Issue
Block a user