[openssh-commits] [openssh] 01/10: upstream commit

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Jun 6 11:36:56 AEST 2016


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit a0cb7778fbc9b43458f7072eb68dd858766384d1
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date:   Mon May 23 00:17:27 2016 +0000

    upstream commit
    
    Plug mem leak in filter_proposal.  ok djm@
    
    Upstream-ID: bf968da7cfcea2a41902832e7d548356a4e2af34
---
 compat.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/compat.c b/compat.c
index 5583804..53d1d9b 100644
--- a/compat.c
+++ b/compat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compat.c,v 1.97 2015/08/19 23:21:42 djm Exp $ */
+/* $OpenBSD: compat.c,v 1.98 2016/05/23 00:17:27 dtucker Exp $ */
 /*
  * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl.  All rights reserved.
  *
@@ -252,7 +252,7 @@ proto_spec(const char *spec)
 
 /*
  * Filters a proposal string, excluding any algorithm matching the 'filter'
- * pattern list.
+ * pattern list.  Returns a new string and frees the original proposal.
  */
 static char *
 filter_proposal(char *proposal, const char *filter)
@@ -275,6 +275,7 @@ filter_proposal(char *proposal, const char *filter)
 	fix_prop = xstrdup((char *)buffer_ptr(&b));
 	buffer_free(&b);
 	free(orig_prop);
+	free(proposal);
 
 	return fix_prop;
 }

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list