]> andersk Git - openssh.git/commitdiff
- dtucker@cvs.openbsd.org 2005/03/10 10:15:02
authordtucker <dtucker>
Mon, 14 Mar 2005 11:58:40 +0000 (11:58 +0000)
committerdtucker <dtucker>
Mon, 14 Mar 2005 11:58:40 +0000 (11:58 +0000)
     [readconf.c]
     Check listen addresses for null, prevents xfree from dying during
     ClearAllForwardings (bz #996).  From  Craig Leres, ok markus@

ChangeLog
readconf.c

index 17a4297db9b58aeb4a222d081745105d3815db6f..3c3edbdf898f6250ee6b3dd0ff7c5637438e2db0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+20050314
+ - (dtucker) OpenBSD CVS Sync
+   - dtucker@cvs.openbsd.org 2005/03/10 10:15:02
+     [readconf.c]
+     Check listen addresses for null, prevents xfree from dying during
+     ClearAllForwardings (bz #996).  From  Craig Leres, ok markus@
+
 20050313
  - (dtucker) [contrib/cygwin/ssh-host-config] Makes the query for the
    localized name of the local administrators group more reliable.  From
index 7173a8c2328860287eb951be34dcfd7ced76f988..f35fe564740ad1bc3d2ccbcdb43e36ba2fe21b98 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: readconf.c,v 1.137 2005/03/04 08:48:06 djm Exp $");
+RCSID("$OpenBSD: readconf.c,v 1.138 2005/03/10 10:15:02 dtucker Exp $");
 
 #include "ssh.h"
 #include "xmalloc.h"
@@ -253,12 +253,14 @@ clear_forwardings(Options *options)
        int i;
 
        for (i = 0; i < options->num_local_forwards; i++) {
-               xfree(options->local_forwards[i].listen_host);
+               if (options->local_forwards[i].listen_host != NULL)
+                       xfree(options->local_forwards[i].listen_host);
                xfree(options->local_forwards[i].connect_host);
        }
        options->num_local_forwards = 0;
        for (i = 0; i < options->num_remote_forwards; i++) {
-               xfree(options->remote_forwards[i].listen_host);
+               if (options->remote_forwards[i].listen_host != NULL)
+                       xfree(options->remote_forwards[i].listen_host);
                xfree(options->remote_forwards[i].connect_host);
        }
        options->num_remote_forwards = 0;
This page took 0.037592 seconds and 5 git commands to generate.