Bluetooth: Fix NULL pointer dereference in flush_cb

conn was never set in struct flush_data passed to flush_cb.

Change-Id: I2a16479bf7660a96f705d1194245da02ee6eeff5
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2015-06-12 15:48:11 +02:00 committed by Anas Nashif
parent b85f2e8264
commit b47d14a273
1 changed files with 1 additions and 0 deletions

View File

@ -1023,6 +1023,7 @@ static uint8_t att_exec_write_rsp(struct bt_conn *conn, uint8_t flags)
return BT_ATT_ERR_UNLIKELY;
}
data.conn = conn;
data.flags = flags;
/* Apply to the whole database */