Parcourir la source

Note a problem in the interface tor_addr_to_sockaddr.

svn:r17982
Nick Mathewson il y a 15 ans
Parent
commit
585d4a12b5
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/common/address.c

+ 2 - 0
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,