fix for null pcb from Ralf

This commit is contained in:
jani 2004-01-07 12:43:23 +00:00
parent 8516810993
commit 48fb31fe75

View File

@ -772,9 +772,9 @@ udp_new(void) {
if (pcb != NULL) { if (pcb != NULL) {
/* initialize PCB to all zeroes */ /* initialize PCB to all zeroes */
memset(pcb, 0, sizeof(struct udp_pcb)); memset(pcb, 0, sizeof(struct udp_pcb));
pcb->ttl = UDP_TTL;
} }
pcb->ttl = UDP_TTL;
return pcb; return pcb;
} }