summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2016-02-23 12:16:19 -0800
committerShawn Routhier <sar@isc.org>2016-02-23 12:16:19 -0800
commit84ee63a06b9727f9c5a8ea990668ad5b7160ee0b (patch)
tree908d163c3966e46d398a3cdefa1d72c6480928d8 /common
parent9b2e9347a9a30ecee560c3d275f8f0e789622529 (diff)
downloadisc-dhcp-84ee63a06b9727f9c5a8ea990668ad5b7160ee0b.tar.gz
[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
Diffstat (limited to 'common')
-rw-r--r--common/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/options.c b/common/options.c
index 50271f22..1db73ac5 100644
--- a/common/options.c
+++ b/common/options.c
@@ -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 */
decoded_packet->options_valid = 0;
if (!option_state_allocate (&decoded_packet->options, MDL)) {
+ packet_dereference(&decoded_packet, MDL);
return;
}