diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-04-26 04:50:15 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-09 13:19:46 -0400 |
commit | 9da4e25183317ea87d1e7f14e9b13e0530ea0240 (patch) | |
tree | 3c8d9a20bba0d936fb4659127656ea0fcdaf0e4e /src/or/connection_or.c | |
parent | d7d25558fafbff15fb10c6e226824f9f0f6d99c7 (diff) | |
download | tor-9da4e25183317ea87d1e7f14e9b13e0530ea0240.tar.gz tor-9da4e25183317ea87d1e7f14e9b13e0530ea0240.zip |
Remove some dead code, found by clang
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 4b932ec51e..c6049d51f6 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -1414,9 +1414,8 @@ connection_or_send_netinfo(or_connection_t *conn) len = append_address_to_payload(out, &my_addr); if (len < 0) return -1; - out += len; } else { - *out++ = 0; + *out = 0; } connection_or_write_cell_to_buf(&cell, conn); |