summaryrefslogtreecommitdiff
path: root/core/Lossless_UDP.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-20 15:53:15 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-20 15:53:15 -0400
commit747c290269db58f68ce05e976af974f3904ac3d0 (patch)
tree86759848cbd147668eb27a115195f9c7998b347b /core/Lossless_UDP.c
parent2f66b312442f15f24adaf7216f5bc61390fdc016 (diff)
Fixed DHT_test.c and added some checks.
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;