diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-07-09 13:23:39 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:22:01 +0100 |
commit | f4baf99a5e974a486a21fc5a8ab4a1aafd0691a2 (patch) | |
tree | f3ca79ba594e3579ef7a6ce771ad4803ad65b23c | |
parent | 1b609bec8e4d6d93dd9d13c5b424f953d33a2f97 (diff) | |
download | bluez-f4baf99a5e974a486a21fc5a8ab4a1aafd0691a2.tar.gz |
gobex: Use proper response code in connect response
-rw-r--r-- | unit/test-gobex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unit/test-gobex.c b/unit/test-gobex.c index dbe1836ee..78d1df596 100644 --- a/unit/test-gobex.c +++ b/unit/test-gobex.c @@ -37,7 +37,7 @@ static GMainLoop *mainloop = NULL; static uint8_t pkt_connect_req[] = { G_OBEX_OP_CONNECT | FINAL_BIT, 0x00, 0x07, 0x10, 0x00, 0x10, 0x00 }; -static uint8_t pkt_connect_rsp[] = { 0x10 | FINAL_BIT, 0x00, 0x07, +static uint8_t pkt_connect_rsp[] = { 0x20 | FINAL_BIT, 0x00, 0x07, 0x10, 0x00, 0x10, 0x00 }; static uint8_t pkt_setpath_req[] = { G_OBEX_OP_SETPATH | FINAL_BIT, 0x00, 0x10, @@ -82,7 +82,7 @@ static void connect_rsp(GObex *obex, GError *err, GObexPacket *rsp, } rsp_code = g_obex_packet_get_operation(rsp, &final); - if (rsp_code != 0x10) { + if (rsp_code != 0x20) { g_set_error(test_err, TEST_ERROR, TEST_ERROR_UNEXPECTED, "Unexpected response 0x%02x", rsp_code); goto done; |