summaryrefslogtreecommitdiff
path: root/gobex/gobex.c
diff options
context:
space:
mode:
authorJaganath Kanakkassery <jaganath.k@samsung.com>2012-02-02 17:03:35 +0530
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:22:05 +0100
commitb53a70510fd0f94566d8f5e435d038248a9aaae2 (patch)
treeb12dec43ae585916bfb3b9883448009db42027d2 /gobex/gobex.c
parent9166ea3ffd87ff073a9bc6446d778ff60c91359e (diff)
downloadbluez-b53a70510fd0f94566d8f5e435d038248a9aaae2.tar.gz
gobex: Fix ABORT request not processing
G_OBEX_OP_ABORT is defined as 0x7f but error checking of opcode is done for greater than 0x1f. So abort request is simply ignored.
Diffstat (limited to 'gobex/gobex.c')
-rw-r--r--gobex/gobex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c
index 0853a9b81..c1e7dc468 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -1163,7 +1163,7 @@ static gboolean incoming_data(GIOChannel *io, GIOCondition cond,
} else {
opcode = obex->rx_last_op;
/* Unexpected response -- fail silently */
- if (opcode > 0x1f && opcode < 0xff) {
+ if (opcode > 0x1f && opcode != G_OBEX_OP_ABORT) {
obex->rx_data = 0;
return TRUE;
}