summaryrefslogtreecommitdiffstats
path: root/tools/busybox-patches/networking_httpd.diff
blob: 869c65a269c34c43af37d92f66262a1132181fa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Author: Lars Mueller <lm at openslx dot com>
Subject: Add missing defines to enable code for a particular
BugID: 1159

Index: busybox-1.3.1/networking/httpd.c
===================================================================
--- busybox-1.3.1.orig/networking/httpd.c
+++ busybox-1.3.1/networking/httpd.c
@@ -1305,8 +1305,10 @@ static int checkPermIP(void)
 
 	/* This could stand some work */
 	for (cur = config->ip_a_d; cur; cur = cur->next) {
+#if ENABLE_FEATURE_HTTPD_CGI || DEBUG
 		if (DEBUG)
 			fprintf(stderr, "checkPermIP: '%s' ? ", config->rmt_ip_str);
+#endif
 		if (DEBUG)
 			fprintf(stderr, "'%u.%u.%u.%u/%u.%u.%u.%u'\n",
 				(unsigned char)(cur->ip >> 24),
@@ -1690,7 +1692,9 @@ static void handleIncoming(void)
 		config->ContentLength = -1;
 	} while (0);
 
+#if ENABLE_FEATURE_HTTPD_CGI
  bail_out:
+#endif
 
 	if (DEBUG)
 		fprintf(stderr, "closing socket\n\n");