missing deref after signature change

pull/6932/head
paul-szczepanek-arm 2018-04-16 15:06:37 +01:00
parent d8f5100822
commit 6b67a6d0a6
1 changed files with 3 additions and 3 deletions

View File

@ -24,13 +24,13 @@ ble_error_t Gap::getRandomAddressType(
// (Vol 6 - Part B)
switch (address[5] >> 6) {
case 0x03:
type = RandomAddressType_t::STATIC;
*type = RandomAddressType_t::STATIC;
return BLE_ERROR_NONE;
case 0x00:
type = RandomAddressType_t::NON_RESOLVABLE_PRIVATE;
*type = RandomAddressType_t::NON_RESOLVABLE_PRIVATE;
return BLE_ERROR_NONE;
case 0x02:
type = RandomAddressType_t::RESOLVABLE_PRIVATE;
*type = RandomAddressType_t::RESOLVABLE_PRIVATE;
return BLE_ERROR_NONE;
default:
return BLE_ERROR_INVALID_PARAM;