Skip to content

Commit

Permalink
Merge pull request #9727 from jepler/fix-assign-wifi-radio-dns-raspi
Browse files Browse the repository at this point in the history
Fix crash on assignment of wifi.radio.dns on raspberrypi boards
  • Loading branch information
dhalbert authored Oct 18, 2024
2 parents 7a2da7a + 6a2e674 commit aa38548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/raspberrypi/common-hal/wifi/Radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ void common_hal_wifi_radio_set_dns(wifi_radio_obj_t *self, mp_obj_t dns_addrs_ob
addr.addr = IPADDR_NONE;
} else {
mp_obj_t dns_addr_obj = mp_obj_subscr(dns_addrs_obj, MP_OBJ_NEW_SMALL_INT(0), MP_OBJ_SENTINEL);
socketpool_resolve_host_raise(dns_addr_obj, &addr);
socketpool_resolve_host_raise(mp_obj_str_get_str(dns_addr_obj), &addr);
}
dns_setserver(0, &addr);
}

0 comments on commit aa38548

Please sign in to comment.