From: Chan-yeol Park <chanyeol.park@xxxxxxxxxxx> This patch initializes rsp varialbe again for the remain failure procedure. --- profiles/network/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/profiles/network/server.c b/profiles/network/server.c index a3274d9..bcb233e 100644 --- a/profiles/network/server.c +++ b/profiles/network/server.c @@ -343,7 +343,7 @@ static uint16_t bnep_setup_decode(struct bnep_setup_conn_req *req, return BNEP_CONN_INVALID_SVC; } - return 0; + return BNEP_SUCCESS; } static void session_free(void *data) @@ -425,6 +425,8 @@ static gboolean bnep_setup(GIOChannel *chan, if (rsp) goto reply; + rsp = BNEP_CONN_NOT_ALLOWED; + ns = find_server(na->servers, dst_role); if (!ns) { error("Server unavailable: (0x%x)", dst_role); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html