[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Backport MAPADDRESS v0 control fix
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv17371/src/or
Modified Files:
Tag: tor-0_1_0-patches
control.c
Log Message:
Backport MAPADDRESS v0 control fix
Index: control.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.83.2.1
retrieving revision 1.83.2.2
diff -u -d -r1.83.2.1 -r1.83.2.2
--- control.c 5 Jun 2005 14:31:37 -0000 1.83.2.1
+++ control.c 21 Jun 2005 21:52:17 -0000 1.83.2.2
@@ -582,7 +582,7 @@
log_fn(LOG_WARN,"Skipping invalid argument '%s' in MapAddress msg",to);
} else if (!strcmp(from, ".") || !strcmp(from, "0.0.0.0")) {
const char *addr = addressmap_register_virtual_address(
- strcmp(from,".") ? RESOLVED_TYPE_HOSTNAME : RESOLVED_TYPE_IPV4,
+ !strcmp(from,".") ? RESOLVED_TYPE_HOSTNAME : RESOLVED_TYPE_IPV4,
tor_strdup(to));
if (!addr) {
log_fn(LOG_WARN,