[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1218019945.4755.36.camel@localhost>
Date: Wed, 06 Aug 2008 06:52:25 -0400
From: jamal <hadi@...erus.ca>
To: Denys Fedoryshchenko <denys@...p.net.lb>
Cc: Stephen Hemminger <shemminger@...ux-foundation.org>,
netdev@...r.kernel.org
Subject: Re: iproute2/m_ipt fix, opts was not set properly
On Wed, 2008-06-08 at 06:42 -0400, jamal wrote:
> Sorry Denys, unless my memory has lost the C scoping rules, i dont think
> the shadowing you describe above is accurate. Let me take a closer look.
Grrr. I see the bug; until you tested with batching, it probably hasnt
mattered.
I still dont see how your patch fixes it. But heres a fix that I think
will work:
1. change free_opts to be:
static void free_opts(struct option **opts)
{
if (*opts != original_opts) {
free(*opts);
*opts = original_opts;
}
}
2. Change invocations of free_opts to be:
free_opts(&opts);
cheers,
jamal
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists