Diff between a1824acc4d83d90bf4fd3c7d1f2474ea1a98f40f and e6ee77aedf213d2d351f0561e20ce93a235e6bc1
Changed Files
| File | Additions | Deletions | Status |
| gobex/gobex.c | +1 | -1 | modified |
Full Patch
diff --git a/gobex/gobex.c b/gobex/gobex.c
index 3874f1b..c777ef6 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -423,7 +423,7 @@ void g_obex_packet_free(GObexPacket *pkt)
static ssize_t get_header_offset(guint8 opcode)
{
- switch (opcode) {
+ switch (opcode & ~G_OBEX_FINAL) {
case G_OBEX_OP_CONNECT:
return sizeof(struct connect_data);
case G_OBEX_OP_SETPATH: