httpd: fix trivial bug (spotted by Alex Landau)
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sun, 21 Oct 2007 23:24:42 +0000 (23:24 +0000)
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Sun, 21 Oct 2007 23:24:42 +0000 (23:24 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@20315 69ca8d6d-28ef-0310-b511-8ec308f3f277

networking/httpd.c

index e4922e5..b31b736 100644 (file)
@@ -626,7 +626,7 @@ static void parse_conf(const char *path, int flag)
                        }
                        *host_port++ = '\0';
                        if (strncmp(host_port, "http://", 7) == 0)
                        }
                        *host_port++ = '\0';
                        if (strncmp(host_port, "http://", 7) == 0)
-                               c += 7;
+                               host_port += 7;
                        if (*host_port == '\0') {
                                bb_error_msg("config error '%s' in '%s'", buf, cf);
                                continue;
                        if (*host_port == '\0') {
                                bb_error_msg("config error '%s' in '%s'", buf, cf);
                                continue;