Re: [PATCH 1/2] netfilter: fix - mistake to pass a pointer where array is required

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



lizf wrote:
Hi,

Macros like SCTP_CHUNKMAP_XXX(chukmap) require chukmap to be an array,
We can see from below:

#define ELEMCOUNT(x) (sizeof(x)/sizeof(x[0]))

#define SCTP_CHUNKMAP_RESET(chunkmap)                \
    do {                            \
        int i;                        \
        for (i = 0; i < ELEMCOUNT(chunkmap); i++)    \
            chunkmap[i] = 0;            \
    } while (0)

But match_packet() passes a pointer to these macros. Here's the patch.

Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx>


Thanks, but your mailer corrupted the patch by converting tabs to
spaces. Please resend as attachment so I can apply it.


-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux