X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-websock.c;h=0247aae6948a47a315caaf595092edbe3639c717;hb=f1b901ed676b2d45ec8e6ae3d6ef2f94d79f9ee6;hp=9f5619fbed5a9dc03f28b29e271f6424bf6ac01f;hpb=19fb390ec60890d55bafe7a4c887b1453509f7ef;p=src%2Fapp-framework-binder.git diff --git a/src/afb-websock.c b/src/afb-websock.c index 9f5619fb..0247aae6 100644 --- a/src/afb-websock.c +++ b/src/afb-websock.c @@ -28,6 +28,7 @@ #include "afb-ws-json.h" #include "afb-method.h" +#include "afb-context.h" #include "afb-hreq.h" #include "afb-websock.h" @@ -203,7 +204,7 @@ int afb_websock_check_upgrade(struct afb_hreq *hreq) return 0; ws = NULL; - rc = check_websocket_upgrade(hreq->connection, protodefs, afb_hreq_context(hreq), &ws); + rc = check_websocket_upgrade(hreq->connection, protodefs, hreq->context.session, &ws); if (rc == 1) { hreq->replied = 1; if (ws != NULL)