Blame SOURCES/dhcp-4.3.6-reference_count_overflow.patch

324fcf
diff --git a/common/options.c b/common/options.c
324fcf
index 83e0384..a58c5fc 100644
324fcf
--- a/common/options.c
324fcf
+++ b/common/options.c
324fcf
@@ -189,6 +189,8 @@ int parse_option_buffer (options, buffer, length, universe)
324fcf
 
324fcf
 		/* If the length is outrageous, the options are bad. */
324fcf
 		if (offset + len > length) {
324fcf
+			/* Avoid reference count overflow */
324fcf
+			option_dereference(&option, MDL);
324fcf
 			reason = "option length exceeds option buffer length";
324fcf
 		      bogus:
324fcf
 			log_error("parse_option_buffer: malformed option "