Home GnuPG
Diffusion GnuPG 3978df943dc7

agent: Fix segv running in --server mode

Description

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.

Details

Provenance
wernerAuthored on Jul 2 2018, 8:22 PM
Parents
rG1aacd1247193: libdns: For SOCKS connection, just fails.
Branches
Unknown
Tags
Unknown