fix a void return in a non-void function

Andreas Stieger astieger at
Thu Sep 15 12:04:17 CEST 2016


On 08/19/2016 11:17 PM, Andreas Stieger wrote:
> the attached patch fixes a void return in a non-void function that was
> new in 2.1.15 and was apparently introduced in 14479e2.

diff --git a/common/simple-pwquery.c b/common/simple-pwquery.c
@@ -285,6 +285,7 @@ agent_open (assuan_context_t *ctx)
   assuan_release (*ctx);
   *ctx = NULL;
+  return -1;

Changed to return rc in 62f3e0027724b23c0de5be6d1e66cfdeef7e7bc9.


Andreas Stieger <astieger at>
Project Manager Security
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton,
HRB 21284 (AG Nürnberg)

More information about the Gnupg-devel mailing list