obexd: Fixes a segfault when disconnected trying to send multiple files

This commit is contained in:
Vinicius Costa Gomes 2008-10-23 15:20:54 -03:00 committed by Marcel Holtmann
parent 0a2a27c3eb
commit 2edc33c430

View File

@ -614,6 +614,8 @@ int session_send(struct session_data *session, const char *filename)
xfer = gw_obex_put_async(session->obex, session->name, NULL,
session->size, -1, NULL);
if (xfer == NULL)
return -ENOTCONN;
message = dbus_message_new_method_call(session->agent_name,
session->agent_path, AGENT_INTERFACE, "Progress");