From 823f2ffc1e86f861345838221792f15aba95cca2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 10 Mar 2017 14:29:15 -0500 Subject: [PATCH] Fix: bt_connection_get_*_port() must take a reference on port MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- lib/component/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/component/connection.c b/lib/component/connection.c index 8867e4f0..f52840bc 100644 --- a/lib/component/connection.c +++ b/lib/component/connection.c @@ -81,13 +81,13 @@ end: struct bt_port *bt_connection_get_input_port( struct bt_connection *connection) { - return connection ? connection->input_port : NULL; + return connection ? bt_get(connection->input_port) : NULL; } struct bt_port *bt_connection_get_output_port( struct bt_connection *connection) { - return connection ? connection->output_port : NULL; + return connection ? bt_get(connection->output_port) : NULL; } struct bt_notification_iterator * -- 2.34.1