kbx: Improve and fix keybox_lock.
authorWerner Koch <wk@gnupg.org>
Wed, 13 Jan 2016 13:47:06 +0000 (14:47 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 13 Jan 2016 13:47:06 +0000 (14:47 +0100)
commit8f1368d5e3f7654ad9cb100053535f728dff2344
tree8afe816ce6ef7d15ef7fc286c8367e7782081aed
parent4aceebf36f103eb380e21d12a1f08b7d6ea7cc8e
kbx: Improve and fix keybox_lock.

* kbx/keybox-init.c (keybox_lock): Make sure ERR is initialized.  Get
error codes from dotlock functions.

Signed-off-by: Werner Koch <wk@gnupg.org>
kbx/keybox-init.c