aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_rest_namestore.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-03-26 14:28:27 +0100
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-03-26 14:28:27 +0100
commitfa8b5926395406f96654aa5a0b84848dc4e1a519 (patch)
tree784111c575f181b7eff616a7a5d8ff7a41ea4394 /src/namestore/plugin_rest_namestore.c
parent655fc47e417831125d6ebb5f68d4e86371cb931f (diff)
downloadgnunet-fa8b5926395406f96654aa5a0b84848dc4e1a519.tar.gz
gnunet-fa8b5926395406f96654aa5a0b84848dc4e1a519.zip
-fixing memleaks and nptr derefs
Diffstat (limited to 'src/namestore/plugin_rest_namestore.c')
-rw-r--r--src/namestore/plugin_rest_namestore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c
index edcbeb874..ae93e5eff 100644
--- a/src/namestore/plugin_rest_namestore.c
+++ b/src/namestore/plugin_rest_namestore.c
@@ -375,6 +375,8 @@ get_egoentry_namestore (struct RequestHandle *handle, char *name)
375 if (NULL == name) 375 if (NULL == name)
376 return NULL; 376 return NULL;
377 tmp = strtok (copy, "/"); 377 tmp = strtok (copy, "/");
378 if (NULL == tmp)
379 return NULL;
378 for (ego_entry = ego_head; NULL != ego_entry; 380 for (ego_entry = ego_head; NULL != ego_entry;
379 ego_entry = ego_entry->next) 381 ego_entry = ego_entry->next)
380 { 382 {