diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-08-08 16:44:48 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-08-08 16:44:48 +0200 |
commit | 615487401fd79c62ea42ad15ad3740995030ec5c (patch) | |
tree | f39e0150d06a32f8ce256bac53d021b9f25afebe /src/namestore/plugin_rest_namestore.c | |
parent | 9b0697c03ccba29f5130509b2affe7ee5bbea2b3 (diff) | |
download | gnunet-615487401fd79c62ea42ad15ad3740995030ec5c.tar.gz gnunet-615487401fd79c62ea42ad15ad3740995030ec5c.zip |
-fix nptr issues
Diffstat (limited to 'src/namestore/plugin_rest_namestore.c')
-rw-r--r-- | src/namestore/plugin_rest_namestore.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c index ae93e5eff..ff5494dc7 100644 --- a/src/namestore/plugin_rest_namestore.c +++ b/src/namestore/plugin_rest_namestore.c | |||
@@ -955,6 +955,12 @@ list_ego (void *cls, | |||
955 | state = ID_REST_STATE_POST_INIT; | 955 | state = ID_REST_STATE_POST_INIT; |
956 | return; | 956 | return; |
957 | } | 957 | } |
958 | if (NULL == ego) | ||
959 | { | ||
960 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
961 | "Called with NULL ego\n"); | ||
962 | return; | ||
963 | } | ||
958 | if (ID_REST_STATE_INIT == state) | 964 | if (ID_REST_STATE_INIT == state) |
959 | { | 965 | { |
960 | ego_entry = GNUNET_new (struct EgoEntry); | 966 | ego_entry = GNUNET_new (struct EgoEntry); |