diff -urN thttpd-2.21-17/libhttpd.c thttpd-2.21-18/libhttpd.c --- thttpd-2.21-17/libhttpd.c Mon Jan 21 19:01:40 2002 +++ thttpd-2.21-18/libhttpd.c Tue Jan 22 11:26:42 2002 @@ -1496,11 +1496,13 @@ { httpd_realloc_str(&hc->hostdir,&hc->maxhostdir,strlen(vh_list[tmp].path)); (void) strcpy (hc->hostdir,vh_list[tmp].path); +#ifdef ERR404PERUSER if( hc->err404!=NULL) { httpd_realloc_str(&hc->err404,&hc->maxerr404,strlen(vh_list[tmp].err404)); (void) strcpy (hc->err404,vh_list[tmp].err404); } +#endif ext=rindex(hc->origfilename,'.'); if ( ext==NULL) ext=hc->origfilename; else ext++;