summaryrefslogtreecommitdiff
path: root/core/Lossless_UDP.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/Lossless_UDP.c')
-rw-r--r--core/Lossless_UDP.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Lossless_UDP.c b/core/Lossless_UDP.c
index 3e71ffbb..7ece28e1 100644
--- a/core/Lossless_UDP.c
+++ b/core/Lossless_UDP.c
@@ -719,6 +719,8 @@ static int handle_data(void * object, IP_Port source, uint8_t *packet, uint32_t
719 719
720Lossless_UDP * new_lossless_udp(Networking_Core * net) 720Lossless_UDP * new_lossless_udp(Networking_Core * net)
721{ 721{
722 if(net == NULL)
723 return NULL;
722 Lossless_UDP * temp = calloc(1, sizeof(Lossless_UDP)); 724 Lossless_UDP * temp = calloc(1, sizeof(Lossless_UDP));
723 if (temp == NULL) 725 if (temp == NULL)
724 return NULL; 726 return NULL;