[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -some coverity
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -some coverity |
Date: |
Fri, 01 Jul 2022 10:39:20 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 2d62dab74 -some coverity
2d62dab74 is described below
commit 2d62dab74abfd76e5fe75f44b6c0dc9120a49b64
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Fri Jul 1 10:39:16 2022 +0200
-some coverity
---
src/namestore/plugin_rest_namestore.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/namestore/plugin_rest_namestore.c
b/src/namestore/plugin_rest_namestore.c
index ff5494dc7..0475960eb 100644
--- a/src/namestore/plugin_rest_namestore.c
+++ b/src/namestore/plugin_rest_namestore.c
@@ -640,16 +640,14 @@ namestore_get (struct GNUNET_REST_RequestHandle
*con_handle,
handle->zone_pkey = GNUNET_IDENTITY_ego_get_private_key (ego_entry->ego);
GNUNET_CRYPTO_hash ("record_type", strlen ("record_type"), &key);
- if (GNUNET_NO ==
+ handle->record_type = GNUNET_GNSRECORD_TYPE_ANY;
+ if (GNUNET_YES ==
GNUNET_CONTAINER_multihashmap_contains (con_handle->url_param_map, &key))
- {
- handle->record_type = GNUNET_GNSRECORD_TYPE_ANY;
- }
- else
{
typename = GNUNET_CONTAINER_multihashmap_get (con_handle->url_param_map,
&key);
- handle->record_type = GNUNET_GNSRECORD_typename_to_number (typename);
+ if (NULL != typename)
+ handle->record_type = GNUNET_GNSRECORD_typename_to_number (typename);
}
labelname = &egoname[strlen (ego_entry->identifier)];
// set zone to name if given
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -some coverity,
gnunet <=