Home GnuPG
Diffusion GnuPG 0a3bec2c2525

scd: Fix handling for Data Object with no data.

Description

scd: Fix handling for Data Object with no data.

* scd/app-openpgp.c (get_cached_data): Return NULL for Data Object
with no data.

When GET_DATA returns no data with success (90 00), this routine
firstly returned buffer with length zero, and secondly (with cache)
returned NULL, which is inconsistent. Now, it returns NULL for both
cases.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Feb 12 2018, 10:56 AM
Parents
rGe0658b19d93b: doc: Add compliance de-vs to gpgsm in vsnfd.prf
Branches
Unknown
Tags
Unknown