diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/or/eventdns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index c41065818b..c0d974e0bc 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -1204,7 +1204,7 @@ evdns_request_data_build(const char *const name, const int name_len, const u16 t free(labels); return labels_len; } - if (j + labels_len > buf_len) { + if ((size_t)(j + labels_len) > buf_len) { free(labels); return (-1); } |