Skip to content

Commit

Permalink
fix a malloc size bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ldoolitt authored and danielinux committed Sep 5, 2023
1 parent aa453be commit cded9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pico_dns_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ struct pico_dns_client_retransmission_bookmark {

static int pico_dns_client_send(struct pico_dns_query *q)
{
struct pico_dns_client_retransmission_bookmark *b = PICO_ZALLOC(sizeof(uint16_t));
struct pico_dns_client_retransmission_bookmark *b = PICO_ZALLOC(sizeof(struct pico_dns_client_retransmission_bookmark));
if (!b) {
pico_err = PICO_ERR_ENOMEM;
return -1;
Expand Down

0 comments on commit cded9fd

Please sign in to comment.