Skip to content

Commit 8924d5c

Browse files
Thalleyjhedberg
authored andcommitted
tests: Bluetooth: GATT server test add missing bt_conn_ref
Add missing bt_conn_ref for the gatt server test. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 47f991b commit 8924d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bluetooth/bsim_bt/bsim_test_gatt/src/gatt_server_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static void connected(struct bt_conn *conn, uint8_t err)
2525

2626
printk("Connected to %s\n", addr);
2727

28-
g_conn = conn;
28+
g_conn = bt_conn_ref(conn);
2929
SET_FLAG(flag_is_connected);
3030
}
3131

0 commit comments

Comments
 (0)