From 9cab553d6ce4e352ba8eb656b0058c7d5336ca73 Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Mon, 2 Mar 2020 16:59:32 +0100 Subject: Fix bug in C++ wrapper Address of the function is much better than adress of the pointer in the stack. BUG-AGL: SPEC-3220 Change-Id: I860b66ac7b8581af5229201556333edcde1f089f Signed-off-by: Jose Bollo --- include/afb/c++/binding-wrap.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/afb/c++/binding-wrap.hpp b/include/afb/c++/binding-wrap.hpp index a9984690..9844a070 100644 --- a/include/afb/c++/binding-wrap.hpp +++ b/include/afb/c++/binding-wrap.hpp @@ -782,7 +782,7 @@ constexpr afb_verb_t verb( session, auth, glob, - (void*)(&callback) + *(void**)(&callback) ); } -- cgit 1.2.3-korg