Diff between 60fd958c2062af75548401aeed02c279e875e0bc and 8d7a30ff3e322e1c4aeb902767a4cf91ce7993be

Changed Files

File Additions Deletions Status
gobex/gobex.c +2 -2 modified

Full Patch

diff --git a/gobex/gobex.c b/gobex/gobex.c
index c3a8b2c..d0de3d9 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;
 	}