Hi,

On Wed, Oct 20, 2010 at 09:31:35PM +0200, Gert Doering wrote:
> I think the patch below should fix this, but have not tested this at all
> (neither with nor without the patch).  Applies to tag v2.1.3

David suggested to use CLEAR() to make easier-understandable code and
more thorough clearing.  Patch (goes on top of the last patch) below.

Agi, either patch should work, but if you haven't tested the other one
yet, please test this one.

gert


From f9ec243ea8f4783d921e56d12a0afb3fad02f0c6 Mon Sep 17 00:00:00 2001
From: Gert Doering <g...@greenie.muc.de>
List-Post: openvpn-devel@lists.sourceforge.net
Date: Thu, 21 Oct 2010 10:35:29 +0200
Subject: [PATCH] use CLEAR() to clear all of "netlist" - more in line with the 
coding style
 and easier to read [dazo]

Signed-off-by: Gert Doering <g...@greenie.muc.de>
---
 route.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/route.c b/route.c
index d50821e..20f62d5 100644
--- a/route.c
+++ b/route.c
@@ -450,7 +450,7 @@ init_route_list (struct route_list *rl,
        struct route r;
        int k;
 
-        netlist.len = 0;               /* won't be set for special routes */
+        CLEAR(netlist);                /* init_route() will not always init 
this */
 
        if (!init_route (&r,
                         &netlist,
-- 
1.7.2.2


-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Attachment: pgp4cYY9vezPY.pgp
Description: PGP signature

Reply via email to