    if (cn->dirp == NULL) {
      send404(cn);
      removeconnection(cn);
-@@ -116,12 +129,13 @@
+@@ -116,12 +134,13 @@
  
    // Get rid of the "."
    readdir(cn->dirp);

   return;
diff -Naur awhttpd/errors.c axTLS/httpd/awhttpd/errors.c
--- awhttpd/errors.c	2005-01-23 06:49:29.000000000 +1000
+++ axTLS/httpd/awhttpd/errors.c	2006-07-07 20:37:30.890625000 +1000
@@ -8,7 +8,6 @@
 
 

 
   cn->state = STATE_DOING_DIR;
 
@@ -134,36 +153,48 @@
 
 void procdodir(struct connstruct *cn) {
 
