diff options
Diffstat (limited to 'core/DHT.c')
-rw-r--r-- | core/DHT.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1145,6 +1145,8 @@ static void do_toping(DHT * dht) | |||
1145 | 1145 | ||
1146 | DHT * new_DHT(Net_Crypto *c) | 1146 | DHT * new_DHT(Net_Crypto *c) |
1147 | { | 1147 | { |
1148 | if (c == NULL) | ||
1149 | return NULL; | ||
1148 | DHT * temp = calloc(1, sizeof(DHT)); | 1150 | DHT * temp = calloc(1, sizeof(DHT)); |
1149 | if (temp == NULL) | 1151 | if (temp == NULL) |
1150 | return NULL; | 1152 | return NULL; |