g10: Fix crash.
authorJustus Winter <justus@g10code.com>
Thu, 21 Jul 2016 09:49:33 +0000 (11:49 +0200)
committerJustus Winter <justus@g10code.com>
Thu, 21 Jul 2016 09:49:33 +0000 (11:49 +0200)
commit1af2fd44f0a66fd0d94c224319db0b128d42a288
tree8e881333df448e8342abaad54eff7b623acb7da4
parent1598a4476466822e7e9c757ac471089d3db4b545
g10: Fix crash.

* g10/tofu.c (tofu_closedbs): Fix freeing database handles up to the
cache limit.  Previously, this would crash if db_cache_count == count.

Reported-by: Ben Kibbey <bjk@luxsci.net>
Signed-off-by: Justus Winter <justus@g10code.com>
g10/tofu.c