diff options
Diffstat (limited to 'core/net_crypto.c')
-rw-r--r-- | core/net_crypto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/net_crypto.c b/core/net_crypto.c index e36a1666..6c915f49 100644 --- a/core/net_crypto.c +++ b/core/net_crypto.c | |||
@@ -699,6 +699,8 @@ static void receive_crypto(Net_Crypto *c) | |||
699 | sets all the global connection variables to their default values. */ | 699 | sets all the global connection variables to their default values. */ |
700 | Net_Crypto * new_net_crypto(Networking_Core * net) | 700 | Net_Crypto * new_net_crypto(Networking_Core * net) |
701 | { | 701 | { |
702 | if (net == NULL) | ||
703 | return NULL; | ||
702 | Net_Crypto * temp = calloc(1, sizeof(Net_Crypto)); | 704 | Net_Crypto * temp = calloc(1, sizeof(Net_Crypto)); |
703 | if (temp == NULL) | 705 | if (temp == NULL) |
704 | return NULL; | 706 | return NULL; |