Ethereal-dev: [ethereal-dev] patch to packet-bootp.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Wed, 9 Aug 2000 01:26:44 -0400 (EDT)
Gentlemen,

Attached, please find a proposed patch to packet-bootp.c. This patch prevents a crash when no MAC address is given in a bootp/dhcp request.  

The problem is that when the size of the MAC address is 0, dissect_bootp calls proto_tree_add_bytes with a start_ptr of 0, which calls proto_tree_set_bytes, which calls g_assert because the start pointer is NULL.

Regards,

Phil Techau

----------------------------------------------------------------
Get your free email from AltaVista at http://altavista.iname.com

Attachment: packet-bootp.diff
Description: text, base64 encoded