api_msg.c: fix the netbuf::addr field to point on the ip_src on the pbuf's copy (about bug#22530).

This commit is contained in:
fbernon 2008-03-12 12:58:07 +00:00
parent 552106e2a4
commit a2f1892480

View File

@ -104,7 +104,7 @@ recv_raw(void *arg, struct raw_pcb *pcb, struct pbuf *p,
buf->p = q;
buf->ptr = q;
buf->addr = addr;
buf->addr = &(((struct ip_hdr*)(q->payload))->src);
buf->port = pcb->protocol;
SYS_ARCH_INC(conn->recv_avail, q->tot_len);