diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-20 15:53:15 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-20 15:53:15 -0400 |
commit | 747c290269db58f68ce05e976af974f3904ac3d0 (patch) | |
tree | 86759848cbd147668eb27a115195f9c7998b347b /core/Lossless_UDP.c | |
parent | 2f66b312442f15f24adaf7216f5bc61390fdc016 (diff) |
Fixed DHT_test.c and added some checks.
Diffstat (limited to 'core/Lossless_UDP.c')
-rw-r--r-- | core/Lossless_UDP.c | 2 |
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 | ||
720 | Lossless_UDP * new_lossless_udp(Networking_Core * net) | 720 | Lossless_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; |