aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-websock.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-04-21 17:48:00 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-04-21 17:48:00 +0200
commit289017821655e0d9750eb7d5ae82c23790422a50 (patch)
treefbe38ec111cf829c8c8455cb494e7db1f00e694c /src/afb-websock.c
parent5eaa2c12a8b89f8a16f0759db88d65b56c82918c (diff)
websocket implementing cleanup
Change-Id: I85ee8eb60ef5d37ce1a82044ae317d2a17d3bec8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-websock.c')
-rw-r--r--src/afb-websock.c2
1 files changed, 1 insertions, 1 deletions
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);