commit | f70b359b3830b7a5b72c78136edc740839b67acd | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Jun 01 10:59:25 2018 +0300 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Jun 15 23:06:45 2018 +0800 |
tree | ff85623d9bd6aa86ec7247d69350754ea988800b | |
parent | b268b3506d9910ca8238e92cb1dc51340574b2f2 [diff] |
crypto: chtls - use after free in chtls_pt_recvmsg() We call chtls_free_skb() but then we dereference it on the next lines. Also "skb" can't be NULL, we just dereferenced it on the line before. I have moved the free down a couple lines to fix this issue. Fixes: 17a7d24aa89d ("crypto: chtls - generic handling of data and hdr") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>