[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [flashproxy/master] Add missing returns on error conditions.
commit 1fa2068648ffc2368ef1a381bca1aac89aace513
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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) + ".");
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits