Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH obexd] gobex: fix removing wrong id on transfer_free
@ 2011-11-21 11:59 Luiz Augusto von Dentz
  2011-11-21 12:18 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2011-11-21 11:59 UTC (permalink / raw)
  To: linux-bluetooth

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-21 12:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-21 11:59 [PATCH obexd] gobex: fix removing wrong id on transfer_free Luiz Augusto von Dentz
2011-11-21 12:18 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox