mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-28 12:57:42 +00:00
[master] Add a call to dereference the packet structure if the deocding fails
Squashed commit of the following: commit 7d61e40149676f989667cac90d9c3b6f5b63ac6b Author: Shawn Routhier <sar@isc.org> Date: Tue Feb 23 11:31:27 2016 -0800 [rt41774] Add a call to dereference the packet structure if the deocding fails
This commit is contained in:
parent
9b2e9347a9
commit
84ee63a06b
4
RELNOTES
4
RELNOTES
@ -244,6 +244,10 @@ by Eric Young (eay@cryptsoft.com).
|
|||||||
[ISC-Bugs #37954]
|
[ISC-Bugs #37954]
|
||||||
[ISC-Bugs #40752]
|
[ISC-Bugs #40752]
|
||||||
|
|
||||||
|
- Add a dereference call when handling an error condition while
|
||||||
|
decoding a packet.
|
||||||
|
[ISC-Bugs #41774]
|
||||||
|
|
||||||
Changes since 4.3.3b1
|
Changes since 4.3.3b1
|
||||||
|
|
||||||
- None
|
- None
|
||||||
|
@ -3877,6 +3877,7 @@ void do_packet (interface, packet, len, from_port, from, hfrom)
|
|||||||
/* Allocate packet->options now so it is non-null for all packets */
|
/* Allocate packet->options now so it is non-null for all packets */
|
||||||
decoded_packet->options_valid = 0;
|
decoded_packet->options_valid = 0;
|
||||||
if (!option_state_allocate (&decoded_packet->options, MDL)) {
|
if (!option_state_allocate (&decoded_packet->options, MDL)) {
|
||||||
|
packet_dereference(&decoded_packet, MDL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user