aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-03-25 16:50:18 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-03-25 16:50:18 +0100
commitefcba05ca901c277ce44e4be8c475b79595ea0ca (patch)
tree850a8192dda27d5f394f75de8a2fc4747b237845
parentf629aad464ea5595aeea9ada8b32d412628c3c2f (diff)
http-svc: fix bug
Change-Id: I02252b8a07f1d711703c2103067c468ad597fb73 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/http-svc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http-svc.c b/src/http-svc.c
index 480925db..7b789c4f 100644
--- a/src/http-svc.c
+++ b/src/http-svc.c
@@ -166,7 +166,7 @@ int afb_req_add_alias(AFB_session * session, const char *prefix, const char *ali
da->directory = alias;
da->lendir = strlen(da->directory);
da->dirfd = dirfd;
- if (afb_req_add_handler(session, prefix, handle_alias, (void *)alias, priority))
+ if (afb_req_add_handler(session, prefix, handle_alias, da, priority))
return 1;
free(da);
}