From 585d4a12b50aa0151411c777a6c7d266d71fb46f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 6 Jan 2009 20:50:51 +0000 Subject: [PATCH] Note a problem in the interface tor_addr_to_sockaddr. svn:r17982 --- src/common/address.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/address.c b/src/common/address.c index 7b122e3f24..0e92b71f91 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -53,6 +53,8 @@ * socklen object in *sa_out of object size len. 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, -- 2.11.4.GIT