OSDN Git Service

gobex: Fix header offset lookup
authorJohan Hedberg <johan.hedberg@intel.com>
Sat, 9 Jul 2011 11:14:46 +0000 (13:14 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 4 Dec 2012 21:22:00 +0000 (22:22 +0100)
gobex/gobex.c

index c3a8b2c..d0de3d9 100644 (file)
@@ -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;
        }