summaryrefslogtreecommitdiff
path: root/net/sunrpc/auth.c
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-02-07 20:56:08 +0800
committerDavid S. Miller <davem@davemloft.net>2017-02-07 14:07:23 -0500
commit912964eacb111551db73429719eb5fadcab0ff8a (patch)
tree9ed1ca48c2fa569d1a974fb2b0bbfb9871d8b343 /net/sunrpc/auth.c
parent2dcab598484185dea7ec22219c76dcdd59e3cb90 (diff)
sctp: check af before verify address in sctp_addr_id2transport
Commit 6f29a1306131 ("sctp: sctp_addr_id2transport should verify the addr before looking up assoc") invoked sctp_verify_addr to verify the addr. But it didn't check af variable beforehand, once users pass an address with family = 0 through sockopt, sctp_get_af_specific will return NULL and NULL pointer dereference will be caused by af->sockaddr_len. This patch is to fix it by returning NULL if af variable is NULL. Fixes: 6f29a1306131 ("sctp: sctp_addr_id2transport should verify the addr before looking up assoc") Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc/auth.c')
0 files changed, 0 insertions, 0 deletions
7-02-03 16:58:20 -0500'>2017-02-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-nextDavid S. Miller1-7/+5 2017-02-02netfilter: add and use nf_ct_set helperFlorian Westphal1-4/+2 2017-02-02skbuff: add and use skb_nfct helperFlorian Westphal1-3/+3