afb-stub-ws: Always validate clients of stub-ws
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 12 Oct 2017 20:59:09 +0000 (22:59 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 12 Oct 2017 20:59:09 +0000 (22:59 +0200)
Change-Id: I2c020d586e6f22e47dac8ddb50c8ee9ca9c46b2e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-stub-ws.c

index 8533c79..693a0d0 100644 (file)
@@ -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);