src/server/daemon/config.c

changeset 25
5dee29c7c530
parent 21
627b09ee74e4
child 28
f387669912e8
--- a/src/server/daemon/config.c	Thu Feb 23 13:10:04 2012 +0100
+++ b/src/server/daemon/config.c	Sat Feb 25 12:43:26 2012 +0100
@@ -275,6 +275,7 @@
         return -1;
     }
     file->last_modified = s.st_mtim.tv_sec;
+    return 0;
 }
 
 HTTPObjectConfig* load_obj_conf(char *file) {
@@ -315,7 +316,7 @@
         httpd_object *obj = object_new(name);
         obj->path = NULL;
 
-        conf->objects[i] = obj;
+        conf->objects[i] = obj; // TODO: beyond array bounds write
 
         /* add directives */
         for(int i=0;i<6;i++) {

mercurial