Fix: bt_connection_get_*_port() must take a reference on port
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 10 Mar 2017 19:29:15 +0000 (14:29 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:38 +0000 (12:57 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/component/connection.c

index 8867e4f0d1dfae4f4cb7be44e5cdc9116376a136..f52840bca19bd70dc3fe2b965d58290e49781ecb 100644 (file)
@@ -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 *
This page took 0.024486 seconds and 4 git commands to generate.