X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-websock.c;fp=src%2Fafb-websock.c;h=b4ad57a12190da7e8addac0c5dd3cdd9b0c8b3cc;hb=289017821655e0d9750eb7d5ae82c23790422a50;hp=283a88bc9111552c4dfc6d65d988b14979c0553b;hpb=5eaa2c12a8b89f8a16f0759db88d65b56c82918c;p=src%2Fapp-framework-binder.git diff --git a/src/afb-websock.c b/src/afb-websock.c index 283a88bc..b4ad57a1 100644 --- a/src/afb-websock.c +++ b/src/afb-websock.c @@ -162,7 +162,7 @@ static int check_websocket_upgrade(struct MHD_Connection *con, const struct prot } /* create the web socket */ - ws = proto->create(dup(MHD_get_connection_info(con, MHD_CONNECTION_INFO_CONNECTION_FD)->connect_fd), + ws = proto->create(MHD_get_connection_info(con, MHD_CONNECTION_INFO_CONNECTION_FD)->connect_fd, context, (void*)MHD_resume_connection, con);