From 93c0a81491b148910dd633d383d4c1218104ecca Mon Sep 17 00:00:00 2001
From: Roger Dingledine <arma@torproject.org>
Date: Sat, 11 Apr 2009 00:16:05 +0000
Subject: [PATCH] If the bridge config line doesn't specify a port, assume 443.
 This makes bridge lines a bit smaller and easier for users to understand.

Also, remove a duplicate changelog entry from the past.


svn:r19260
---
 ChangeLog       | 12 ++++++------
 ReleaseNotes    |  5 -----
 src/or/config.c |  6 ++++--
 3 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1cddc5ebbd..5de4550ce9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,13 @@
-Changes in version 0.2.1.14-??? - 2009-04-??
+Changes in version 0.2.1.14-rc - 2009-04-??
   o Security fixes:
     - Avoid crashing in the presence of certain malformed descriptors.
       Found by lark, and by automated fuzzing.
 
+  o Minor features:
+    - If the bridge config line doesn't specify a port, assume 443.
+      This makes bridge lines a bit smaller and easier for users to
+      understand.
+
   o Minor bugfixes:
     - Avoid trying to print raw memory to the logs when we decide to
       give up on downloading a given relay descriptor. Bugfix on
@@ -936,11 +941,6 @@ Changes in version 0.2.0.31 - 2008-09-03
       option as an alias for the actually-working --with-openssl-dir
       option. Fix the help documentation to recommend --with-openssl-dir.
       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
-    - Disallow session resumption attempts during the renegotiation
-      stage of the v2 handshake protocol. Clients should never be trying
-      session resumption at this point, but apparently some did, in
-      ways that caused the handshake to fail. Bug found by Geoff Goodell.
-      Bugfix on 0.2.0.20-rc.
     - When using the TransPort option on OpenBSD, and using the User
       option to change UID and drop privileges, make sure to open
       /dev/pf before dropping privileges. Fixes bug 782. Patch from
diff --git a/ReleaseNotes b/ReleaseNotes
index aa4d8a1204..81d93b92a5 100644
--- a/ReleaseNotes
+++ b/ReleaseNotes
@@ -252,11 +252,6 @@ Changes in version 0.2.0.31 - 2008-09-03
       option as an alias for the actually-working --with-openssl-dir
       option. Fix the help documentation to recommend --with-openssl-dir.
       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
-    - Disallow session resumption attempts during the renegotiation
-      stage of the v2 handshake protocol. Clients should never be trying
-      session resumption at this point, but apparently some did, in
-      ways that caused the handshake to fail. Bug found by Geoff Goodell.
-      Bugfix on 0.2.0.20-rc.
     - When using the TransPort option on OpenBSD, and using the User
       option to change UID and drop privileges, make sure to open
       /dev/pf before dropping privileges. Fixes bug 782. Patch from
diff --git a/src/or/config.c b/src/or/config.c
index caf018d27f..06fab71a53 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -4270,8 +4270,10 @@ parse_bridge_line(const char *line, int validate_only)
     goto err;
   }
   if (!port) {
-    log_warn(LD_CONFIG, "Missing port in Bridge address '%s'",addrport);
-    goto err;
+    log_info(LD_CONFIG,
+             "Bridge address '%s' has no port; using default port 443.",
+             addrport);
+    port = 443;
   }
 
   if (smartlist_len(items)) {
-- 
GitLab