mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-04 09:34:20 +08:00
obexd: Fixes a segfault when disconnected trying to send multiple files
This commit is contained in:
parent
0a2a27c3eb
commit
2edc33c430
@ -614,6 +614,8 @@ int session_send(struct session_data *session, const char *filename)
|
|||||||
|
|
||||||
xfer = gw_obex_put_async(session->obex, session->name, NULL,
|
xfer = gw_obex_put_async(session->obex, session->name, NULL,
|
||||||
session->size, -1, NULL);
|
session->size, -1, NULL);
|
||||||
|
if (xfer == NULL)
|
||||||
|
return -ENOTCONN;
|
||||||
|
|
||||||
message = dbus_message_new_method_call(session->agent_name,
|
message = dbus_message_new_method_call(session->agent_name,
|
||||||
session->agent_path, AGENT_INTERFACE, "Progress");
|
session->agent_path, AGENT_INTERFACE, "Progress");
|
||||||
|
Loading…
Reference in New Issue
Block a user