Diff between d6abe697786744eca28a9c0da65b003ef761f82c and 247aa7074a41e3b4fe0d86200fbd9c87f32c7837

Changed Files

File Additions Deletions Status
profiles/network/bnep.c +1 -8 modified

Full Patch

diff --git a/profiles/network/bnep.c b/profiles/network/bnep.c
index 25de46c..adddc33 100644
--- a/profiles/network/bnep.c
+++ b/profiles/network/bnep.c
@@ -649,19 +649,12 @@ int bnep_server_add(int sk, char *bridge, char *iface, const bdaddr_t *addr,
 
 	/* Processing BNEP_SETUP_CONNECTION_REQUEST_MSG */
 	rsp = bnep_setup_decode(sk, req, &dst);
-	if (rsp != BNEP_SUCCESS || !dst) {
-		err = -rsp;
+	if (rsp != BNEP_SUCCESS) {
 		error("bnep: error while decoding setup connection request: %d",
 									rsp);
 		goto reply;
 	}
 
-	if (!dst) {
-		error("bnep: cannot decode proper destination service UUID");
-		rsp = BNEP_CONN_INVALID_DST;
-		goto reply;
-	}
-
 	err = bnep_connadd(sk, dst, iface);
 	if (err < 0) {
 		rsp = BNEP_CONN_NOT_ALLOWED;