summaryrefslogtreecommitdiff
path: root/core/DHT.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/DHT.c')
-rw-r--r--core/DHT.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/DHT.c b/core/DHT.c
index a139f2c5..c8994437 100644
--- a/core/DHT.c
+++ b/core/DHT.c
@@ -1145,6 +1145,8 @@ static void do_toping(DHT * dht)
1145 1145
1146DHT * new_DHT(Net_Crypto *c) 1146DHT * 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;