aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-gns.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2014-03-02 15:35:51 +0000
committerLRN <lrn1986@gmail.com>2014-03-02 15:35:51 +0000
commitb3e4bdd6d25ad08e7b592204d4f13f19bc73b668 (patch)
treea36fd29db33562b7f526449bbe18ade0ee4284b8 /src/gns/gnunet-gns.c
parent1dd864722fb3b837591f904b5ce1da1017c8af8b (diff)
downloadgnunet-b3e4bdd6d25ad08e7b592204d4f13f19bc73b668.tar.gz
gnunet-b3e4bdd6d25ad08e7b592204d4f13f19bc73b668.zip
Don't crash on NULL lookup_name
Diffstat (limited to 'src/gns/gnunet-gns.c')
-rw-r--r--src/gns/gnunet-gns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c
index 1f3ce8331..7951eb569 100644
--- a/src/gns/gnunet-gns.c
+++ b/src/gns/gnunet-gns.c
@@ -350,7 +350,9 @@ identity_master_cb (void *cls,
350 } 350 }
351 GNUNET_IDENTITY_ego_get_public_key (ego, &pkey); 351 GNUNET_IDENTITY_ego_get_public_key (ego, &pkey);
352 /* if the name is of the form 'label.gnu', never go to the DHT */ 352 /* if the name is of the form 'label.gnu', never go to the DHT */
353 dot = strchr (lookup_name, '.'); 353 dot = NULL;
354 if (NULL != lookup_name)
355 dot = strchr (lookup_name, '.');
354 if ( (NULL != dot) && 356 if ( (NULL != dot) &&
355 (0 == strcasecmp (dot, ".gnu")) ) 357 (0 == strcasecmp (dot, ".gnu")) )
356 only_cached = GNUNET_YES; 358 only_cached = GNUNET_YES;