From 8d7a30ff3e322e1c4aeb902767a4cf91ce7993be Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 9 Jul 2011 13:14:46 +0200 Subject: [PATCH] gobex: Fix header offset lookup --- gobex/gobex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gobex/gobex.c b/gobex/gobex.c index c3a8b2c52..d0de3d924 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -749,10 +749,10 @@ static gboolean incoming_data(GIOChannel *io, GIOCondition cond, if (obex->pending_req) { struct pending_pkt *p = obex->pending_req; opcode = g_obex_packet_get_operation(p->pkt, NULL); - header_offset = req_header_offset(opcode); + header_offset = rsp_header_offset(opcode); } else { opcode = obex->rx_buf[0] & ~FINAL_BIT; - header_offset = rsp_header_offset(opcode); + header_offset = req_header_offset(opcode); obex->rx_last_op = opcode; } -- 2.47.3