g10: Minor clean up for export.c.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 11 Apr 2017 23:47:23 +0000 (08:47 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 11 Apr 2017 23:47:23 +0000 (08:47 +0900)
commit05218829589f6d4b09933fa19f568c2019367d5c
tree08d2489166aaad6d947667818d8eacdc01ef6496
parentc3cc9551dcc89cc25c0a0ec16d8eb12c1c221638
g10: Minor clean up for export.c.

* g10/export.c (export_ssh_key): Check IDENTIFIER for error.
Release base64 thing on error of get_membuf.

--

Compiler (older) may misunderstand the variable IDENTIFIER is not
initialized, while good one can do better analysys on the value for
ERR (and thus, IDENTIFIER).

On the error of get_membuf, still, b64enc_finish should be called,
even if it lost the ERR value.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/export.c