agent: Set assuan system hooks before call of assuan_sock_init.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 6 Dec 2017 02:20:51 +0000 (11:20 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 6 Dec 2017 02:20:51 +0000 (11:20 +0900)
commit1524ba9656f0205d8c6ef504f773b832a7a12ab9
tree7bfb2233e318fd47d9df7457b8b9f29d6d2eb4e9
parent0d0b9eb0d4f99e8d293a4ce4b90921a879905115
agent: Set assuan system hooks before call of assuan_sock_init.

* agent/gpg-agent.c (initialize_modules): Move assuan_set_system_hooks.
(main): ... here, just before assuan_sock_init.

--

In Assuan, global variable SOCK_CTX is used internally, which is
initialized by assuan_sock_init.  When initialized, system hooks
are copied into SOCK_CTX structure.  Thus, system hooks should
be set, before the call of assuan_sock_init.

GnuPG-bug-id: 3378
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/gpg-agent.c