Fix regression in etharp.c: Allocate correct pbuf layer

This commit is contained in:
Dirk Ziegelmeier 2016-08-23 12:32:57 +02:00
parent f170dde1c6
commit 4456c7d230

View File

@ -1097,7 +1097,7 @@ etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q)
}
if (copy_needed) {
/* copy the whole packet into new pbufs */
p = pbuf_alloc(PBUF_RAW_TX, p->tot_len, PBUF_RAM);
p = pbuf_alloc(PBUF_LINK, p->tot_len, PBUF_RAM);
if (p != NULL) {
if (pbuf_copy(p, q) != ERR_OK) {
pbuf_free(p);