fix a void return in a non-void function

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


Hi,

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)
  errout:
   assuan_release (*ctx);
   *ctx = NULL;
+  return -1;
 }
 

Changed to return rc in 62f3e0027724b23c0de5be6d1e66cfdeef7e7bc9.

Andreas

-- 
Andreas Stieger <astieger at suse.com>
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