From 48fb31fe75d3d4293fc42db9cead301d59aac702 Mon Sep 17 00:00:00 2001 From: jani Date: Wed, 7 Jan 2004 12:43:23 +0000 Subject: [PATCH] fix for null pcb from Ralf --- src/core/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/udp.c b/src/core/udp.c index e15e7e19..292ff690 100644 --- a/src/core/udp.c +++ b/src/core/udp.c @@ -772,9 +772,9 @@ udp_new(void) { if (pcb != NULL) { /* initialize PCB to all zeroes */ memset(pcb, 0, sizeof(struct udp_pcb)); + pcb->ttl = UDP_TTL; } - pcb->ttl = UDP_TTL; return pcb; }