diff options
Diffstat (limited to 'crypto/af_alg.c')
-rw-r--r-- | crypto/af_alg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c index 6a3ad8011585..68ff1137dd70 100644 --- a/crypto/af_alg.c +++ b/crypto/af_alg.c | |||
@@ -421,6 +421,12 @@ int af_alg_cmsg_send(struct msghdr *msg, struct af_alg_control *con) | |||
421 | con->op = *(u32 *)CMSG_DATA(cmsg); | 421 | con->op = *(u32 *)CMSG_DATA(cmsg); |
422 | break; | 422 | break; |
423 | 423 | ||
424 | case ALG_SET_AEAD_ASSOCLEN: | ||
425 | if (cmsg->cmsg_len < CMSG_LEN(sizeof(u32))) | ||
426 | return -EINVAL; | ||
427 | con->aead_assoclen = *(u32 *)CMSG_DATA(cmsg); | ||
428 | break; | ||
429 | |||
424 | default: | 430 | default: |
425 | return -EINVAL; | 431 | return -EINVAL; |
426 | } | 432 | } |