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

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



commit e4371155abe397033c666f802a77a911e837762c
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
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) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits