From 4e16c256ed3e5e3eeb3d197867ecf7f3fda6da8a Mon Sep 17 00:00:00 2001 From: Christian Fetzer Date: Mon, 17 Jun 2013 14:10:53 +0200 Subject: [PATCH] obexd: Call setpath_complete with the correct parameter The function setpath_complete has to be called with a pending_request as user_data. In one possible error case, the current code calls it incorrectly with setpath_data. --- obexd/client/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obexd/client/session.c b/obexd/client/session.c index eda341225..a780b8c5c 100644 --- a/obexd/client/session.c +++ b/obexd/client/session.c @@ -967,7 +967,7 @@ static void setpath_cb(GObex *obex, GError *err, GObexPacket *rsp, p->req_id = g_obex_setpath(obex, next, setpath_cb, p, &err); if (err != NULL) { - setpath_complete(p->session, NULL, err, data); + setpath_complete(p->session, NULL, err, user_data); g_error_free(err); } } -- 2.47.3