Skip to content

Commit

Permalink
zepif: Copy possibly chained output pbuf properly
Browse files Browse the repository at this point in the history
Fixes bug #58554
  • Loading branch information
yarrick authored and david-cermak committed Dec 7, 2021
1 parent 4a64731 commit 64ab7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netif/zepif.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ zepif_linkoutput(struct netif *netif, struct pbuf *p)
state->seqno++;
zep->len = (u8_t)p->tot_len;

err = pbuf_take_at(q, p->payload, p->tot_len, sizeof(struct zep_hdr));
err = pbuf_copy_partial_pbuf(q, p, p->tot_len, sizeof(struct zep_hdr));
if (err == ERR_OK) {
#if ZEPIF_LOOPBACK
zepif_udp_recv(netif, state->pcb, pbuf_clone(PBUF_RAW, PBUF_RAM, q), NULL, 0);
Expand Down

0 comments on commit 64ab7f2

Please sign in to comment.