Update UDP_broadcast.c
This commit is contained in:
@@ -252,10 +252,6 @@ static void udp_receive_callback(void *arg, struct udp_pcb *connection, struct p
|
|||||||
struct pbuf *p_data;
|
struct pbuf *p_data;
|
||||||
|
|
||||||
memset(data, 0, sizeof(data));
|
memset(data, 0, sizeof(data));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Convert the source IP address to a string for printing.
|
// Convert the source IP address to a string for printing.
|
||||||
ipaddr_ntoa_r(addr, source_ip_str, sizeof(source_ip_str));
|
ipaddr_ntoa_r(addr, source_ip_str, sizeof(source_ip_str));
|
||||||
|
|
||||||
@@ -290,6 +286,7 @@ static void udp_receive_callback(void *arg, struct udp_pcb *connection, struct p
|
|||||||
LOG_WARN(TAG,"udp_receive_callback: input buffer was a NULL pointer");
|
LOG_WARN(TAG,"udp_receive_callback: input buffer was a NULL pointer");
|
||||||
}
|
}
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
|
pbuf_free(p_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user