From: Chan-yeol Park <chanyeol.park@xxxxxxxxxxx> This patch initializes rsp varailbe again for the remain setup 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 9bf2a02..77a8844 100644 --- a/profiles/network/server.c +++ b/profiles/network/server.c @@ -340,7 +340,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) @@ -422,6 +422,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