diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-02-10 22:28:21 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-02-10 22:28:21 +0000 |
commit | 3d2405cfb30ccc8113839c1be3ee265597b857a6 (patch) | |
tree | e4f1e3bac76a434ecd44f638e621fa0e785b35e7 | |
parent | 18d8a3b7e314036b915ba9e537832d4a52db75bc (diff) | |
download | busybox-w32-3d2405cfb30ccc8113839c1be3ee265597b857a6.tar.gz busybox-w32-3d2405cfb30ccc8113839c1be3ee265597b857a6.tar.bz2 busybox-w32-3d2405cfb30ccc8113839c1be3ee265597b857a6.zip |
Fix compile error, last_patch81 by Vladimir N. Oleynik
-rw-r--r-- | networking/httpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index e61518c20..fb37224cf 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -882,10 +882,12 @@ static int sendHeaders(HttpResponseNum responseNum) | |||
882 | "Date: %s\r\nConnection: close\r\n", | 882 | "Date: %s\r\nConnection: close\r\n", |
883 | responseNum, responseString, config->found_mime_type, timeStr); | 883 | responseNum, responseString, config->found_mime_type, timeStr); |
884 | 884 | ||
885 | #ifdef CONFIG_FEATURE_HTTPD_BASIC_AUTH | ||
885 | if (responseNum == HTTP_UNAUTHORIZED) { | 886 | if (responseNum == HTTP_UNAUTHORIZED) { |
886 | len += sprintf(buf+len, "WWW-Authenticate: Basic realm=\"%s\"\r\n", | 887 | len += sprintf(buf+len, "WWW-Authenticate: Basic realm=\"%s\"\r\n", |
887 | config->realm); | 888 | config->realm); |
888 | } | 889 | } |
890 | #endif | ||
889 | if (config->ContentLength != -1) { /* file */ | 891 | if (config->ContentLength != -1) { /* file */ |
890 | strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod)); | 892 | strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod)); |
891 | len += sprintf(buf+len, "Last-Modified: %s\r\n%s %ld\r\n", | 893 | len += sprintf(buf+len, "Last-Modified: %s\r\n%s %ld\r\n", |
@@ -1519,7 +1521,6 @@ FORBIDDEN: /* protect listing /cgi-bin */ | |||
1519 | if(length < 0) // closed | 1521 | if(length < 0) // closed |
1520 | length = 0; | 1522 | length = 0; |
1521 | body[length] = 0; // always null terminate for safety | 1523 | body[length] = 0; // always null terminate for safety |
1522 | urlArgs = body; | ||
1523 | } | 1524 | } |
1524 | } | 1525 | } |
1525 | 1526 | ||