From: Luiz Augusto von Dentz <luiz.dentz-von@xxxxxxxxx> Variable "transfer" tracked as NULL was passed to function "transfer_unregister" that dereferences it. --- client/session.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/session.c b/client/session.c index 7539a97..ce3432d 100644 --- a/client/session.c +++ b/client/session.c @@ -1274,10 +1274,8 @@ int session_send(struct session_data *session, const char *filename, transfer = transfer_register(session, filename, targetname, NULL, NULL); - if (transfer == NULL) { - err = -EINVAL; - goto fail; - } + if (transfer == NULL) + return -EINVAL; /* Transfer should start if it is the first in the pending list */ if (transfer != session->pending->data) -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html