aboutsummaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2017-03-20 22:20:17 +0000
committerToomas Soome <tsoome@FreeBSD.org>2017-03-20 22:20:17 +0000
commitc1e968fb6297591a95711fea86f694b9f3b43e88 (patch)
tree44e9263aeb4d57ee955cd5e6b765de19dac966e4 /rescue
parent98339da12a4e4255ea080b6a3913896c4587cebc (diff)
downloadsrc-c1e968fb6297591a95711fea86f694b9f3b43e88.tar.gz
src-c1e968fb6297591a95711fea86f694b9f3b43e88.zip
loader: verify the value from dhcp.interface-mtu and use snprintf to set mtu
Since the uset can set dhcp.interface-mtu, we need to try to validate the value. So we verify if the conversion to int is successful and we will not allow to set value greater than max IPv4 packet size. Also use snprintf for safety. Reviewed by: allanjude, bapt Approved by: allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D8492
Notes
Notes: svn path=/head/; revision=315653
Diffstat (limited to 'rescue')
0 files changed, 0 insertions, 0 deletions