Diff between ef6242970281932ec1bec328b62b0d957902c575 and 8beffeca7fb5be3c0e99bce737076eb467fbd363

Changed Files

File Additions Deletions Status
profiles/network/bnep.c +3 -0 modified

Full Patch

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;