src/server/admin/admin.c

changeset 93
95b77e842db3
parent 81
d25825f37967
child 95
74a81d9e19d0
--- a/src/server/admin/admin.c	Mon Sep 09 11:55:14 2013 +0200
+++ b/src/server/admin/admin.c	Mon Sep 09 12:15:54 2013 +0200
@@ -64,7 +64,7 @@
     char *uri = pblock_findkeyval(pb_key_uri, rq->reqpb);
     uri++;
     uri = strchr(uri, '/');
-    size_t uri_len = strlen(uri);
+    size_t uri_len = uri ? strlen(uri) : 0;
     // start with second character to skip leading '/'
     int s = 0;
     int i = 1;
@@ -117,7 +117,10 @@
 }
 
 int adm_listener(Page *page, AdminRequest *rq) {
-    printf("adm_listener\n");
+    SYS_NETFD out = rq->sn->csd;
+    
+    
+    
     return REQ_PROCEED;
 }
 

mercurial