diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2019-10-28 18:02:36 +0100 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2019-11-20 09:30:07 +0100 |
commit | 29ae81fa15c6080fd27929f4cc78e1289cb920e9 (patch) | |
tree | a6c93d41d8285652ba38ee121b1d2792e13fe244 /src/afb-stub-ws.c | |
parent | 1b240e6b92eb3762594312cc603180ae5ce77f72 (diff) |
Introduce object for tokensicefish_8.99.1icefish/8.99.18.99.1
For further optimizations, the token is represented
by a specific structure.
Bug-AGL: SPEC-2968
Change-Id: I3d46a12c8c16809c6cc1d543fa2e6309927ed84d
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-stub-ws.c')
-rw-r--r-- | src/afb-stub-ws.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c index 6a52f6fc..3e9ede2f 100644 --- a/src/afb-stub-ws.c +++ b/src/afb-stub-ws.c @@ -523,9 +523,8 @@ static void server_on_call_cb(void *closure, struct afb_proto_ws_call *call, con wreq->call = call; /* init the context */ - if (afb_context_connect(&wreq->xreq.context, sessionid, NULL) < 0) + if (afb_context_connect_validated(&wreq->xreq.context, sessionid) < 0) goto unconnected; - wreq->xreq.context.validated = 1; server_record_session(stubws, wreq->xreq.context.session); if (wreq->xreq.context.created) afb_session_set_autoclose(wreq->xreq.context.session, 1); |