]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix NULL dereferencing
authorLev Stipakov <lstipakov@gmail.com>
Fri, 6 Feb 2015 12:38:00 +0000 (14:38 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 6 Feb 2015 19:13:04 +0000 (20:13 +0100)
commit2350d709e4d3c28d8850b5106169d799fdad5a29
tree82abd2cbcf7d2fd1be9b26cada21e3256323cd39
parentf95010ad247a8998e0c39e394236251fca316849
Fix NULL dereferencing

In certain cases buf.len can be -1, which causes BPTR to return NULL and
NULL pointer dereferencing on the next line.

As a fix, process only packets with non-zero length.
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1423226280-9580-1-git-send-email-lstipakov@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9444

Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/mudp.c