diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-01 09:39:48 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-01 09:39:48 -0400 |
commit | 6bef082d0a6047fd3625f548d60ad257aaed2fab (patch) | |
tree | 6a3431ce250f4a6a9704523f8cdbde17975dd90d /src/common/address.c | |
parent | c0441cca8b483882f5676b98081f0fe4b52d3ae1 (diff) | |
parent | 61090bb64f03d5fd944535311191486d22b3134d (diff) | |
download | tor-6bef082d0a6047fd3625f548d60ad257aaed2fab.tar.gz tor-6bef082d0a6047fd3625f548d60ad257aaed2fab.zip |
Merge remote-tracking branch 'public/bug11232'
Diffstat (limited to 'src/common/address.c')
-rw-r--r-- | src/common/address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c index 3ecc11b90f..cee4967077 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -1585,7 +1585,7 @@ addr_mask_get_bits(uint32_t mask) return 0; if (mask == 0xFFFFFFFFu) return 32; - for (i=0; i<=32; ++i) { + for (i=1; i<=32; ++i) { if (mask == (uint32_t) ~((1u<<(32-i))-1)) { return i; } |