Re: iproute2/m_ipt fix, opts was not set properly

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Denys Fedoryshchenko <denys@...>
Cc: Stephen Hemminger <shemminger@...>, <netdev@...>
Date: Wednesday, August 6, 2008 - 5:52 am

Denys,

On Tue, 2008-05-08 at 22:24 +0300, Denys Fedoryshchenko wrote:

Are you sure this fixes any segfault? example, the variant you have
below just changes a variable name:

-----
-static void free_opts(struct option *opts)
+static void free_opts(struct option *opts_local)
 {
-       if (opts != original_opts) {
-               free(opts);
+       if (opts_local != original_opts) {
+               free(opts_local);
                opts = original_opts;
                global_option_offset = 0;
        }
-------

You could respin the patch with comment "change bad smelling name of
a variable" - and that would be fine by me.

Please CC me on m_ipt or any of the other actions (as i have asked you
before).

cheers,
jamal

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
iproute2/m_ipt fix, opts was not set properly, Denys Fedoryshchenko, (Tue Aug 5, 3:24 pm)
Re: iproute2/m_ipt fix, opts was not set properly, jamal, (Wed Aug 6, 5:52 am)
Re: iproute2/m_ipt fix, opts was not set properly, Denys Fedoryshchenko, (Wed Aug 6, 6:06 am)
Re: iproute2/m_ipt fix, opts was not set properly, Denys Fedoryshchenko, (Wed Aug 6, 7:02 am)