summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/modssl_mbedtls.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/modssl_mbedtls.c')
-rw-r--r--extmod/modssl_mbedtls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/extmod/modssl_mbedtls.c b/extmod/modssl_mbedtls.c
index 6d78d7d1b3..8974ff65dd 100644
--- a/extmod/modssl_mbedtls.c
+++ b/extmod/modssl_mbedtls.c
@@ -514,6 +514,10 @@ STATIC mp_uint_t socket_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, i
}
}
}
+ } else {
+ // Unsupported ioctl.
+ *errcode = MP_EINVAL;
+ return MP_STREAM_ERROR;
}
// Pass all requests down to the underlying socket