agent: Fix segv running in --server mode
authorWerner Koch <wk@gnupg.org>
Mon, 2 Jul 2018 18:22:42 +0000 (20:22 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 2 Jul 2018 18:25:30 +0000 (20:25 +0200)
commit3978df943dc7a4781a23382be2d3b4a96a04f71f
tree5bda6d80fe63550d599b0a1a0c3e1e6d86f97232
parent1aacd12471935a354cfd85ee1805edc7eb16e6c5
agent: Fix segv running in --server mode

* agent/command.c (start_command_handler): Do not write to
CLIENT_CREDS after an error.
--

assuan_get_peercred is special insofar that it returns a pointer into
CTX.  Writing data via this pointer should never be done.

Fixes-commit: 28aa6890588cc108639951bb4bef03ac17743046
Signed-off-by: Werner Koch <wk@gnupg.org>
agent/command.c