summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2007-09-07 11:15:19 +0000
committerclaudio <claudio@openbsd.org>2007-09-07 11:15:19 +0000
commit3268bbb360879710e527d86196bad2c2ee328876 (patch)
tree51b69760859394a4d1409a072fa813415bf782fa /lib
parentuse M_ZERO (diff)
downloadwireguard-openbsd-3268bbb360879710e527d86196bad2c2ee328876.tar.xz
wireguard-openbsd-3268bbb360879710e527d86196bad2c2ee328876.zip
Check if rtm_hdrlen is smaller then the passed message or it would be possible
to access uninitialised memory. Set dst to 0 on error, the error path tries to access dst but dst is inited later down the code. This fixes a kernel panic seen by aanriot@ OK henning@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions