summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2017-10-13 19:22:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-18 11:11:05 +0100
commit196f4755cc821f09f3ef2ff8cf54bbf34b6ab76c (patch)
treef747cd4dd8d413d343ecb518f2f5d336ca762679 /include
parent71c4a0fc35768b59b0fbd88c3eda719ed924237c (diff)
l2tp: check ps->sock before running pppol2tp_session_ioctl()
[ Upstream commit 5903f594935a3841137c86b9d5b75143a5b7121c ] When pppol2tp_session_ioctl() is called by pppol2tp_tunnel_ioctl(), the session may be unconnected. That is, it was created by pppol2tp_session_create() and hasn't been connected with pppol2tp_connect(). In this case, ps->sock is NULL, so we need to check for this case in order to avoid dereferencing a NULL pointer. Fixes: 309795f4bec2 ("l2tp: Add netlink control API for L2TP") Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions