From f4baf99a5e974a486a21fc5a8ab4a1aafd0691a2 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 9 Jul 2011 13:23:39 +0200 Subject: [PATCH] gobex: Use proper response code in connect response --- unit/test-gobex.c | 4 ++-- 1 file 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; -- 2.47.3