Skip to content

Commit 61ea854

Browse files
lcolittiandi34
authored andcommitted
Fix DoS vulnerability in DHO_OPTIONSOVERLOADED.
Bug: 16677003 Change-Id: I6ac3318c04fa99d964e15aa2f06a5794daf61c7e (cherry picked from commit eae50520f9880b7ffc25a22f39df8013c34768bc)
1 parent 84b7252 commit 61ea854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dhcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ get_option(const struct dhcp_message *dhcp, uint8_t opt, int *len, int *type)
352352
case DHO_OPTIONSOVERLOADED:
353353
/* Ensure we only get this option once */
354354
if (!overl)
355-
overl = p[1];
355+
overl = 0x80 | p[1];
356356
break;
357357
}
358358
l = *p++;

0 commit comments

Comments
 (0)