diff options
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; |