cc3200/mods/modussl: Fix ca_certs arg validation in mod_ssl_wrap_socket.

Commit a0d97fe408 changed the argument index
of ca_certs but missed updating one of the references to the new index.
pull/4440/head
Reagan Sanders 2019-01-03 10:37:20 -05:00 zatwierdzone przez Damien George
rodzic 18723e9889
commit 51577629b2
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -85,8 +85,8 @@ STATIC mp_obj_t mod_ssl_wrap_socket(size_t n_args, const mp_obj_t *pos_args, mp_
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);
// chech if ca validation is required
if (args[4].u_int != SSL_CERT_NONE && args[5].u_obj == mp_const_none) {
// check if ca validation is required
if (args[4].u_int != SSL_CERT_NONE && args[6].u_obj == mp_const_none) {
goto arg_error;
}