OSDN Git Service

gattc: Fix uninitialized memory issue which could lead to crash
authorŁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>
Fri, 22 Jan 2021 09:17:53 +0000 (10:17 +0100)
committerJakub Pawlowski <jpawlowski@google.com>
Mon, 25 Jan 2021 15:15:05 +0000 (15:15 +0000)
commit052f6d1f6fd373161edef034a45bac904e6f363a
tree6475511972b875f2c6666483bc36024db0eb3c04
parentfe19726a0662dd83832545996ad48af5c41691b5
gattc: Fix uninitialized memory issue which could lead to crash

This is regression after
813bf3ddd gattc: Extend gattc queue with mtu exchange

This patch makes sure that new mtu_cb and mtu_cb_data
are set to 0 when not used.

Tag: #feature
Test: CtsVerifier
Sponsor: jpawlowski@
Fixes: 178129488
Bug: 178129488
Change-Id: Ia550c99ee7292fa275150791fc73e92ae791d91c
bta/gatt/bta_gattc_api.cc