[Bro] [PATCH] Fix signedness issue in src/nb_dns.c

Robin Sommer robin at icir.org
Wed Apr 23 12:19:39 PDT 2008


Thanks for the patch!

On Wed, Apr 23, 2008 at 15:32 +0800, you wrote:

> -	hp = (HEADER *)msg;
> +	hp = (HEADER *)(u_char *)msg;

I'm not sure I understand this change? Isn't the second cast
neutralized by the first?

Robin

-- 
Robin Sommer * Phone +1 (510) 666-2886 * robin at icir.org 
ICSI/LBNL    * Fax   +1 (510) 666-2956 *   www.icir.org



More information about the Bro mailing list