diff options
author | 2007-09-07 11:15:19 +0000 | |
---|---|---|
committer | 2007-09-07 11:15:19 +0000 | |
commit | 3268bbb360879710e527d86196bad2c2ee328876 (patch) | |
tree | 51b69760859394a4d1409a072fa813415bf782fa /lib | |
parent | use M_ZERO (diff) | |
download | wireguard-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