Note a problem in the interface tor_addr_to_sockaddr.

svn:r17982
This commit is contained in:
Nick Mathewson 2009-01-06 20:50:51 +00:00
parent e61c40e9f4
commit 585d4a12b5

View File

@ -53,6 +53,8 @@
* socklen object in *<b>sa_out</b> of object size <b>len</b>. If not enough * 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 * room is free, or on error, return -1. Else return the length of the
* sockaddr. */ * sockaddr. */
/* XXXX021 This returns socklen_t. socklen_t is sometimes unsigned. This
* function claims to return -1 sometimes. Problematic! */
socklen_t socklen_t
tor_addr_to_sockaddr(const tor_addr_t *a, tor_addr_to_sockaddr(const tor_addr_t *a,
uint16_t port, uint16_t port,