summaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r--src/or/eventdns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c
index 6e4e5e25b4..005abc4425 100644
--- a/src/or/eventdns.c
+++ b/src/or/eventdns.c
@@ -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;