aboutsummaryrefslogtreecommitdiff
path: root/src/common/address.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-01-06 20:50:51 +0000
committerNick Mathewson <nickm@torproject.org>2009-01-06 20:50:51 +0000
commit585d4a12b50aa0151411c777a6c7d266d71fb46f (patch)
treeb819bb8ea5596df85cb7c2dfb1e79106f16ec302 /src/common/address.c
parente61c40e9f40be06a21edff1527ee7458c8e2290e (diff)
downloadtor-585d4a12b50aa0151411c777a6c7d266d71fb46f.tar
tor-585d4a12b50aa0151411c777a6c7d266d71fb46f.tar.gz
Note a problem in the interface tor_addr_to_sockaddr.
svn:r17982
Diffstat (limited to 'src/common/address.c')
-rw-r--r--src/common/address.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/address.c b/src/common/address.c
index 7b122e3f2..0e92b71f9 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -53,6 +53,8 @@
* socklen object in *<b>sa_out</b> of object size <b>len</b>. If not enough
* room is free, or on error, return -1. Else return the length of the
* sockaddr. */
+/* XXXX021 This returns socklen_t. socklen_t is sometimes unsigned. This
+ * function claims to return -1 sometimes. Problematic! */
socklen_t
tor_addr_to_sockaddr(const tor_addr_t *a,
uint16_t port,