From b53a70510fd0f94566d8f5e435d038248a9aaae2 Mon Sep 17 00:00:00 2001 From: Jaganath Kanakkassery Date: Thu, 2 Feb 2012 17:03:35 +0530 Subject: [PATCH] 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. --- gobex/gobex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3