]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
An asterisk makes a difference sometimes. Fixes bug 809.
authorNick Mathewson <nickm@torproject.org>
Thu, 4 Sep 2008 20:42:02 +0000 (20:42 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 4 Sep 2008 20:42:02 +0000 (20:42 +0000)
svn:r16758

ChangeLog
src/common/address.c

index d7d60fd59ecfcf150e7f7583e720b3fbea1f86e3..3242e9f5f934048dfdaf63ec45261c14c3168092 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@ Changes in version 0.2.1.6-alpha - 2008-09-xx
   o Minor bugfixes:
     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
       Reported by Tas.
+    - When parsing ports in tor_addr_port_parse(), yield the port if
+      the port variable is provided, not just if it's nonzero.  Fixes
+      bug 809.  Bugfix on 0.2.1.5-alpha.
 
   o Minor features:
     - Use a lockfile to make sure that two Tor processes are not
index 3c6eb6f5ace0580813c587d3131bc0474d5a4fff..c7483af09c524a6ee9289f987c71bbce20475a92 100644 (file)
@@ -917,7 +917,7 @@ tor_addr_port_parse(const char *s, tor_addr_t *addr_out, uint16_t *port_out)
     portval = 0;
   }
 
-  if (*port_out)
+  if (port_out)
     *port_out = portval;
   tor_addr_copy(addr_out, &addr);