gpg: Avoid using an uninitialized SALT on premature EOF.
authorWerner Koch <wk@gnupg.org>
Wed, 6 Jan 2016 07:48:44 +0000 (08:48 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 6 Jan 2016 07:48:44 +0000 (08:48 +0100)
commit85cc7449fb00ac85b0c2eecd22bd38b23f33edf5
tree469e086128ff9e4a660be5636b9f75b30d71774a
parent09accc0e3d74e6289bed40b5bfc6479981cabfe4
gpg: Avoid using an uninitialized SALT on premature EOF.

* g10/parse-packet.c (parse_key): Check for premature end of salt.
--

This has no security implications because an arbitrary salt could have
also been inset by an attacker.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/parse-packet.c