diff options
Diffstat (limited to 'sys/crypto/crypto.c')
-rw-r--r-- | sys/crypto/crypto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c index 4ef43f154f2..c30c50dabb3 100644 --- a/sys/crypto/crypto.c +++ b/sys/crypto/crypto.c @@ -302,6 +302,7 @@ crypto_dispatch(struct cryptop *crp) /* Migrate session */ for (crd = crp->crp_desc; crd->crd_next; crd = crd->crd_next) crd->CRD_INI.cri_next = &(crd->crd_next->CRD_INI); + if (crypto_newsession(&nid, &(crp->crp_desc->CRD_INI)) == 0) crp->crp_sid = nid; @@ -317,6 +318,7 @@ crypto_dispatch(struct cryptop *crp) /* Migrate session */ for (crd = crp->crp_desc; crd->crd_next; crd = crd->crd_next) crd->CRD_INI.cri_next = &(crd->crd_next->CRD_INI); + if (crypto_newsession(&nid, &(crp->crp_desc->CRD_INI)) == 0) crp->crp_sid = nid; |