Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/httpd fix an error in the previous.



details:   https://anonhg.NetBSD.org/src/rev/455693822e91
branches:  trunk
changeset: 757752:455693822e91
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Sep 20 22:18:22 2010 +0000

description:
fix an error in the previous.

diffstat:

 libexec/httpd/bozohttpd.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 5b67cd2e65ef -r 455693822e91 libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Mon Sep 20 21:58:43 2010 +0000
+++ b/libexec/httpd/bozohttpd.c Mon Sep 20 22:18:22 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bozohttpd.c,v 1.23 2010/09/20 21:58:43 mrg Exp $       */
+/*     $NetBSD: bozohttpd.c,v 1.24 2010/09/20 22:18:22 mrg Exp $       */
 
 /*     $eterna: bozohttpd.c,v 1.174 2010/06/21 06:47:23 mrg Exp $      */
 
@@ -954,9 +954,7 @@
 {
        bozohttpd_t *httpd = request->hr_httpd;
        char *file = request->hr_file, *s;
-       struct dirent **list;
        size_t len;
-       int i;
 
        if (!httpd->virtbase)
                goto use_slashdir;
@@ -991,6 +989,9 @@
            request->hr_host, httpd->virtbase, request->hr_file));
        if (strncasecmp(httpd->virthostname, request->hr_host, len) != 0) {
                s = 0;
+               DIR *dirp;
+               struct dirent *d;
+
                if ((dirp = opendir(httpd->virtbase)) != NULL) {
                        while ((d = readdir(dirp)) != NULL) {
                                if (strcmp(d->d_name, ".") == 0 ||



Home | Main Index | Thread Index | Old Index