]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move to the next flag when we recognize Writable flags
authorMatthew Finkel <Matthew.Finkel@gmail.com>
Fri, 13 Mar 2015 07:04:22 +0000 (07:04 +0000)
committerMatthew Finkel <Matthew.Finkel@gmail.com>
Fri, 13 Mar 2015 07:04:22 +0000 (07:04 +0000)
src/or/config.c

index db353965a1e42186a1013507d4147fef2b0c3a9c..8d29b8e411ab6414b2e9c15dc7e8d28656b2872c 100644 (file)
@@ -5614,7 +5614,7 @@ warn_nonlocal_ext_orports(const smartlist_t *ports, const char *portname)
 }
 
 /** Given a list of port_cfg_t in <b>ports</b>, warn any controller port there
- * is listening on any non-loopback address.  If <b>forbid</b> is true,
+ * is listening on any non-loopback address.  If <b>forbid_nonlocal</b> is true,
  * then emit a stronger warning and remove the port from the list.
  */
 static void
@@ -5735,7 +5735,7 @@ config_parse_unix_port(const char *addrport, char **path_out)
  *
  * If CL_PORT_WARN_NONLOCAL is set in <b>flags</b>, warn if any of the
  * ports are not on a local address.  If CL_PORT_FORBID_NONLOCAL is set,
- * this is a contrl port with no password set: don't even allow it.
+ * this is a control port with no password set: don't even allow it.
  *
  * Unless CL_PORT_ALLOW_EXTRA_LISTENADDR is set in <b>flags</b>, warn
  * if FooListenAddress is set but FooPort is 0.
@@ -6044,8 +6044,10 @@ parse_port_config(smartlist_t *out,
 
         if (!strcasecmp(elt, "GroupWritable")) {
           group_writable = !no;
+          continue;
         } else if (!strcasecmp(elt, "WorldWritable")) {
           world_writable = !no;
+          continue;
         }
 
         if (allow_no_stream_options) {