[tor-commits] [flashproxy/js] Add missing returns on error conditions.

dcf at torproject.org dcf at torproject.org
Mon Apr 2 16:40:50 UTC 2012


commit 1fa2068648ffc2368ef1a381bca1aac89aace513
Author: David Fifield <david at bamsoftware.com>
Date:   Sat Mar 31 16:58:11 2012 -0700

    Add missing returns on error conditions.
---
 flashproxy.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/flashproxy.js b/flashproxy.js
index 786f428..e55e26b 100644
--- a/flashproxy.js
+++ b/flashproxy.js
@@ -308,6 +308,7 @@ function FlashProxy()
         client_addr = parse_addr_spec(response.client);
         if (client_addr === null) {
             puts("Error: can't parse client spec " + repr(response.client) + ".");
+            return;
         }
         if (!response.relay) {
             puts("Error: missing relay in response.");
@@ -316,6 +317,7 @@ function FlashProxy()
         relay_addr = parse_addr_spec(response.relay);
         if (relay_addr === null) {
             puts("Error: can't parse relay spec " + repr(response.relay) + ".");
+            return;
         }
         puts("Facilitator: got client:" + repr(client_spec) + " "
             + "relay:" + repr(relay_spec) + ".");





More information about the tor-commits mailing list