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

[or-cvs] Fix another reversed inet_aton



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv11653/src/or

Modified Files:
	routerparse.c 
Log Message:
Fix another reversed inet_aton

Index: routerparse.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerparse.c,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -d -r1.129 -r1.130
--- routerparse.c	8 Sep 2005 18:46:25 -0000	1.129
+++ routerparse.c	8 Sep 2005 18:53:57 -0000	1.130
@@ -1301,7 +1301,7 @@
     goto err;
   }
   ns->source_address = tok->args[0]; tok->args[0] = NULL;
-  if (tor_inet_aton(tok->args[1], &in) != 0) {
+  if (tor_inet_aton(tok->args[1], &in) == 0) {
     log_fn(LOG_WARN, "Error parsing address '%s'", tok->args[1]);
     goto err;
   }