summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}