[PATCH] * Revision for 7902e496e09a5daac100562007ecac03a9900807

Joshua Rogers git at internot.info
Sun Dec 21 19:27:04 CET 2014


Previous commit 7902e496e09a5daac100562007ecac03a9900807 allowed for a double-free to occur under certain circumstances.
---
 dirmngr/server.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dirmngr/server.c b/dirmngr/server.c
index ca1be95..fff722e 100644
--- a/dirmngr/server.c
+++ b/dirmngr/server.c
@@ -1605,9 +1605,8 @@ cmd_ks_search (assuan_context_t ctx, char *line)
       err = ks_action_search (ctrl, list, outfp);
       es_fclose (outfp);
     }
-
+  free_strlist(list);
  leave:
-  free_strlist (list);
   return leave_cmd (ctx, err);
 }
 
-- 
1.9.1




More information about the Gnupg-devel mailing list