Make tor_addr_copy() conform to memcpy requirements
commitc0d682686ad8df66b1f6680b1185853532f24429
authorNick Mathewson <nickm@torproject.org>
Tue, 9 Feb 2010 17:32:10 +0000 (9 12:32 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 9 Feb 2010 17:32:10 +0000 (9 12:32 -0500)
tree5f2bc651108569b0b1c034fd326ee958e62c4a39
parent080e8f50f87fb7c0c099b1341173fa05c82a42e8
Make tor_addr_copy() conform to memcpy requirements

The src and dest of a memcpy() call aren't supposed to overlap,
but we were sometimes calling tor_addr_copy() as a no-op.

Also, tor_addr_assign was a redundant copy of tor_addr_copy(); this patch
removes it.
src/common/address.c
src/common/address.h
src/or/connection_edge.c
src/or/dns.c