From a848ceb0721d9e405f9326441b1958e289c6e81f Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 20 Oct 2014 15:35:15 +0300 Subject: [PATCH] bnep: Fix treating return of bnep_if_up as bool --- profiles/network/bnep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/network/bnep.c b/profiles/network/bnep.c index c40ed6950..927367cca 100644 --- a/profiles/network/bnep.c +++ b/profiles/network/bnep.c @@ -318,7 +318,7 @@ static gboolean bnep_setup_cb(GIOChannel *chan, GIOCondition cond, if (bnep_connadd(sk, session->src, session->iface) < 0) goto failed; - if (bnep_if_up(session->iface)) { + if (bnep_if_up(session->iface) < 0) { bnep_conndel(&session->dst_addr); goto failed; } -- 2.47.3