summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wifi-aware-private.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wifi-aware-private.c b/src/wifi-aware-private.c
index fa313c3..9f82e96 100644
--- a/src/wifi-aware-private.c
+++ b/src/wifi-aware-private.c
@@ -298,8 +298,8 @@ static void __wifi_aware_publish_invoke_callback(wifi_aware_session_h session,
if (handle->published_cb) {
wifi_aware_published_cb published_cb = handle->published_cb;
handle->published_cb = NULL;
- handle->published_cb_data = NULL;
published_cb(session, error, handle->published_cb_data);
+ handle->published_cb_data = NULL;
}
}