Skip to content

Commit b05c967

Browse files
ThePassionatexiaoxiang781216
authored andcommitted
mbedtls-alt/dev-alt: complement cloning capability
Signed-off-by: makejian <[email protected]>
1 parent fff767e commit b05c967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/mbedtls/source/dev_alt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ int cryptodev_clone(FAR cryptodev_context_t *dst,
9494
{
9595
dst->session = src->session;
9696
dst->crypt = src->crypt;
97-
return cryptodev_get_session(dst);
97+
return dup2(src->fd, dst->fd);
9898
}

0 commit comments

Comments
 (0)