Return-Path: From: chanyeol.park@samsung.com To: linux-bluetooth@vger.kernel.org Subject: [PATCH v2 4/4] network: Fix bnep setup failure handle bug Date: Tue, 28 Aug 2012 19:24:55 +0900 Message-id: <1346149495-9363-4-git-send-email-chanyeol.park@samsung.com> In-reply-to: <1346149495-9363-1-git-send-email-chanyeol.park@samsung.com> References: <1346149495-9363-1-git-send-email-chanyeol.park@samsung.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Chan-yeol Park 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