From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH obexd] gobex: fix removing wrong id on transfer_free
Date: Mon, 21 Nov 2011 13:59:51 +0200 [thread overview]
Message-ID: <1321876791-30239-1-git-send-email-luiz.dentz@gmail.com> (raw)
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
If statement checks for get_id handle but was removing req_id.
---
gobex/gobex-transfer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gobex/gobex-transfer.c b/gobex/gobex-transfer.c
index 6d2f7af..f5222cd 100644
--- a/gobex/gobex-transfer.c
+++ b/gobex/gobex-transfer.c
@@ -67,7 +67,7 @@ static void transfer_free(struct transfer *transfer)
if (transfer->get_id > 0)
g_obex_remove_request_function(transfer->obex,
- transfer->req_id);
+ transfer->get_id);
if (transfer->abort_id > 0)
g_obex_remove_request_function(transfer->obex,
--
1.7.7.1
next reply other threads:[~2011-11-21 11:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 11:59 Luiz Augusto von Dentz [this message]
2011-11-21 12:18 ` [PATCH obexd] gobex: fix removing wrong id on transfer_free Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1321876791-30239-1-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox