[tor-commits] [obfsproxy/master] Don't require that ST_ENV_FAIL_EXTENDED_PORT is set

nickm at torproject.org nickm at torproject.org
Mon Feb 13 04:52:12 UTC 2012


commit e4371155abe397033c666f802a77a911e837762c
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Sun Feb 12 09:48:02 2012 +0100

    Don't require that ST_ENV_FAIL_EXTENDED_PORT is set
---
 src/managed.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/managed.c b/src/managed.c
index 01814f8..58b96ee 100644
--- a/src/managed.c
+++ b/src/managed.c
@@ -455,10 +455,10 @@ handle_environment(managed_proxy_t *proxy)
   if (proxy->is_server) {
     tmp = getenv("TOR_PT_EXTENDED_SERVER_PORT");
     if (!tmp) {
-      status = ST_ENV_FAIL_EXTENDED_PORT;
-      goto err;
+      proxy->vars.extended_port = xstrdup("");
+    } else {
+      proxy->vars.extended_port = xstrdup(tmp);
     }
-    proxy->vars.extended_port = xstrdup(tmp);
 
     tmp = getenv("TOR_PT_ORPORT");
     if (!tmp) {





More information about the tor-commits mailing list