OSDN Git Service

Assign a new future before calling update()
authorBranden Archer <brarcher@google.com>
Wed, 2 Jan 2019 19:26:09 +0000 (11:26 -0800)
committerBranden Archer <brarcher@google.com>
Mon, 7 Jan 2019 18:45:54 +0000 (10:45 -0800)
commit69793f8e683ab79a3419b08d3b1d7549fcf54a23
treeb6449f4a7d90f89f702098adde81520a5bdb4ecb
parentba81fb29c4998647baf5fe0fa313a14d87b92eff
Assign a new future before calling update()

An empty future was being used, and when the update() call
completed the value in the empty future was grabbed
resulting in a nullptr de-reference.

Bug: 120182820
Test: atest system/hardware/interfaces/wifi/keystore/1.0/
            vts/functional/VtsHalWifiKeystoreV1_0TargetTest.cpp

Change-Id: I02968a5b93f2e59ce5801676ab3bae437e2c53d8
wifi/keystore/1.0/default/keystore.cpp