summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-10-12 22:59:09 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-12 22:59:09 +0200
commit32bc7ed3914171cd7945551a5ba82afe909afe32 (patch)
tree5652f19dc3ead58276f94d41ba8ed7fba4507bbf
parent0033c7c16a48819447b3a5273ebb2be99be74352 (diff)
afb-stub-ws: Always validate clients of stub-ws
Change-Id: I2c020d586e6f22e47dac8ddb50c8ee9ca9c46b2e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-stub-ws.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c
index 8533c797..693a0d0c 100644
--- a/src/afb-stub-ws.c
+++ b/src/afb-stub-ws.c
@@ -479,6 +479,7 @@ static void on_call(void *closure, struct afb_proto_ws_call *call, const char *v
/* init the context */
if (afb_context_connect(&wreq->xreq.context, sessionid, NULL) < 0)
goto unconnected;
+ wreq->xreq.context.validated = 1;
/* makes the call */
wreq->xreq.cred = afb_cred_addref(stubws->cred);