OSDN Git Service

obexd: Call setpath_complete with the correct parameter
authorChristian Fetzer <christian.fetzer@bmw-carit.de>
Mon, 17 Jun 2013 12:10:53 +0000 (14:10 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 18 Jun 2013 10:43:00 +0000 (13:43 +0300)
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

index eda3412..a780b8c 100644 (file)
@@ -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);
        }
 }