linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2] bnep: Fix using uninitialized variable
@ 2015-05-29 10:04 Andrei Emeltchenko
  2015-06-01 10:11 ` Andrei Emeltchenko
  2015-06-01 11:00 ` Szymon Janc
  0 siblings, 2 replies; 3+ messages in thread
From: Andrei Emeltchenko @ 2015-05-29 10:04 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

---
 profiles/network/bnep.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/profiles/network/bnep.c b/profiles/network/bnep.c
index 59599e4..9bf0b18 100644
--- a/profiles/network/bnep.c
+++ b/profiles/network/bnep.c
@@ -634,8 +634,11 @@ static int bnep_server_add_legacy(int sk, uint16_t dst, char *bridge,
 		bnep_del_from_bridge(iface, bridge);
 		bnep_conndel(addr);
 		rsp = BNEP_CONN_NOT_ALLOWED;
+		goto reply;
 	}
 
+	rsp = BNEP_SUCCESS;
+
 reply:
 	if (bnep_send_ctrl_rsp(sk, BNEP_SETUP_CONN_RSP, rsp) < 0) {
 		err = -errno;
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-01 11:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29 10:04 [PATCHv2] bnep: Fix using uninitialized variable Andrei Emeltchenko
2015-06-01 10:11 ` Andrei Emeltchenko
2015-06-01 11:00 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).