summaryrefslogtreecommitdiff
path: root/core/DHT.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-20 15:53:15 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-20 15:53:15 -0400
commit747c290269db58f68ce05e976af974f3904ac3d0 (patch)
tree86759848cbd147668eb27a115195f9c7998b347b /core/DHT.c
parent2f66b312442f15f24adaf7216f5bc61390fdc016 (diff)
Fixed DHT_test.c and added some checks.
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;