diff --git a/src/netif/slipif.c b/src/netif/slipif.c index c8e4eb37..7baa8537 100644 --- a/src/netif/slipif.c +++ b/src/netif/slipif.c @@ -497,7 +497,7 @@ slipif_rxbyte_enqueue(struct netif *netif, u8_t data) if (priv->rxpackets != NULL) { #if SLIP_RX_QUEUE /* queue multiple pbufs */ - struct pbuf *q = p; + struct pbuf *q = priv->rxpackets; while (q->next != NULL) { q = q->next; }