diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-05-28 19:45:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-05-28 19:45:50 -0400 |
commit | 24a2352d56d807320c45fcdd8c74435bda4302c2 (patch) | |
tree | e6d2e4b139b09e75fea02043b8ec08632b9cad24 /src | |
parent | ff9aa32143849c69097000290b939f14c9bbcb36 (diff) | |
download | tor-24a2352d56d807320c45fcdd8c74435bda4302c2.tar.gz tor-24a2352d56d807320c45fcdd8c74435bda4302c2.zip |
Trivial fix for a trivial warning with gcc 9.1.1
Fix on 4e3d144fb0940d8ee5a89427d471ea3656e8e122; bug not in any
released Tor.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/net/address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/net/address.c b/src/lib/net/address.c index 7dec4c8e25..546af800a9 100644 --- a/src/lib/net/address.c +++ b/src/lib/net/address.c @@ -339,7 +339,7 @@ tor_addr_to_str(char *dest, const tor_addr_t *addr, size_t len, int decorate) break; case AF_INET6: /* Shortest addr [ :: ] + \0 */ - if (len < (3 + (decorate ? 2 : 0))) + if (len < (3u + (decorate ? 2 : 0))) return NULL; if (decorate) |