summaryrefslogtreecommitdiff
path: root/crypto/acompress.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-07-02 13:32:21 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2020-07-09 18:25:22 +1000
commit673136029221f5b7c0eea9efc9aabc1a081aa148 (patch)
treec87b7a8d3f4b8259c6f19311f8f6e7434d9573b8 /crypto/acompress.c
parenta52eb0489f96f7318fce6b1afe1cabd46c750746 (diff)
downloadlinux-crypto-673136029221f5b7c0eea9efc9aabc1a081aa148.tar.gz
linux-crypto-673136029221f5b7c0eea9efc9aabc1a081aa148.zip
crypto: af_alg - Fix regression on empty requests
Some user-space programs rely on crypto requests that have no control metadata. This broke when a check was added to require the presence of control metadata with the ctx->init flag. This patch fixes the regression by setting ctx->init as long as one sendmsg(2) has been made, with or without a control message. Reported-by: Sachin Sant <sachinp@linux.vnet.ibm.com> Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org> Fixes: a52eb0489f96 ("crypto: algif_aead - Only wake up when...") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/acompress.c')
0 files changed, 0 insertions, 0 deletions