gpg: Fix a NULL-deref due to empty ring trust packets.
authorWerner Koch <wk@gnupg.org>
Thu, 12 Feb 2015 17:52:07 +0000 (18:52 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 12 Feb 2015 17:52:07 +0000 (18:52 +0100)
commit7e12ec4c7d6df29a7d7935399fccd2594ebb4a7e
treeae331a9d0dc4f47351c014379cc0a43730ad21dc
parenta55c2125380aa2253ff13ea9b39e53d7b7df3db8
gpg: Fix a NULL-deref due to empty ring trust packets.

* g10/parse-packet.c (parse_trust): Always allocate a packet.
--

Reported-by: Hanno Böck <hanno@hboeck.de>
Signed-off-by: Werner Koch <wk@gnupg.org>
(back ported from commit 39978487863066e59bb657f5fe4e8baab510da7e)
g10/parse-packet.c