[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r10389: oops; use tor_inet_aton rather than inet_aton in tor_inet_nt (in tor/trunk: . src/common)



Author: nickm
Date: 2007-05-29 10:41:24 -0400 (Tue, 29 May 2007)
New Revision: 10389

Modified:
   tor/trunk/
   tor/trunk/src/common/compat.c
Log:
 r13042@catbus:  nickm | 2007-05-29 10:41:10 -0400
 oops; use tor_inet_aton rather than inet_aton in tor_inet_ntop.  Spotted by Li-Hui Zhou.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r13042] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/common/compat.c
===================================================================
--- tor/trunk/src/common/compat.c	2007-05-29 14:41:20 UTC (rev 10388)
+++ tor/trunk/src/common/compat.c	2007-05-29 14:41:24 UTC (rev 10389)
@@ -908,7 +908,7 @@
         ;
       ++eow;
 
-      if (inet_aton(eow, &in) != 1)
+      if (tor_inet_aton(eow, &in) != 1)
         return 0;
       a = ntohl(in.s_addr);
       words[6] = a >> 16;