dirmngr: Fix use-after-free due to a realloc shrinking.
authorWerner Koch <wk@gnupg.org>
Fri, 2 Oct 2015 09:31:45 +0000 (11:31 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 2 Oct 2015 09:31:45 +0000 (11:31 +0200)
commit75c64c2b6d77856b90903cc3b7c6a2f62ff8eb7b
treeb1a9da0f9f6e16f0eba12c1fdb3db41a52ad4cef
parentddf9dd135acd2b3635bb986f6dfc0e4e446d5fad
dirmngr: Fix use-after-free due to a realloc shrinking.

* dirmngr/ks-engine-hkp.c (map_host): Do not use original pointer
after realloc.
--

vex01 reported and debugged the problem.

GnuPG-bug-id: 2107
Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/ks-engine-hkp.c