OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1824ac
)
gobex: Fix checking opcodes with final-bit set
author
Johan Hedberg
<johan.hedberg@intel.com>
Sun, 26 Jun 2011 22:42:43 +0000
(
01:42
+0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 4 Dec 2012 21:21:56 +0000
(22:21 +0100)
gobex/gobex.c
patch
|
blob
|
history
diff --git
a/gobex/gobex.c
b/gobex/gobex.c
index
3874f1b
..
c777ef6
100644
(file)
--- 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: