[or-cvs] resolve a XXX

arma at seul.org arma at seul.org
Mon Aug 15 09:19:57 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	config.c 
Log Message:
resolve a XXX


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.388
retrieving revision 1.389
diff -u -d -r1.388 -r1.389
--- config.c	15 Aug 2005 09:17:47 -0000	1.388
+++ config.c	15 Aug 2005 09:19:55 -0000	1.389
@@ -1515,11 +1515,18 @@
     result = -1;
   }
 
-  /* XXX might similarly want to check the other *BindAddress options */
   if (options->ORPort == 0 && options->ORBindAddress != NULL) {
     log(LOG_WARN, "ORPort must be defined if ORBindAddress is defined.");
     result = -1;
   }
+  if (options->DirPort == 0 && options->DirBindAddress != NULL) {
+    log(LOG_WARN, "DirPort must be defined if DirBindAddress is defined.");
+    result = -1;
+  }
+  if (options->SocksPort == 0 && options->SocksBindAddress != NULL) {
+    log(LOG_WARN, "SocksPort must be defined if SocksBindAddress is defined.");
+    result = -1;
+  }
 
   if (validate_data_directory(options)<0) {
     log(LOG_WARN, "Invalid DataDirectory");



More information about the tor-commits mailing list