[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: GNS: Fix null pointer use
From: |
gnunet |
Subject: |
[gnunet] branch master updated: GNS: Fix null pointer use |
Date: |
Thu, 21 Mar 2024 09:21:18 +0100 |
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 2aded5e3a GNS: Fix null pointer use
2aded5e3a is described below
commit 2aded5e3abe303338687656cb248819b62ee27f0
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Mar 21 09:21:01 2024 +0100
GNS: Fix null pointer use
---
src/cli/gns/gnunet-gns.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/cli/gns/gnunet-gns.c b/src/cli/gns/gnunet-gns.c
index 19b3fc903..724fbce24 100644
--- a/src/cli/gns/gnunet-gns.c
+++ b/src/cli/gns/gnunet-gns.c
@@ -241,6 +241,7 @@ run (void *cls,
const char *cfgfile,
const struct GNUNET_CONFIGURATION_Handle *c)
{
+ const char *effective_lookup_type;
(void) cls;
(void) args;
(void) cfgfile;
@@ -309,9 +310,15 @@ run (void *cls,
GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
NULL);
if (NULL != lookup_type)
+ {
+ effective_lookup_type = lookup_type;
rtype = GNUNET_GNSRECORD_typename_to_number (lookup_type);
+ }
else
+ {
+ effective_lookup_type = "A";
rtype = GNUNET_DNSPARSER_TYPE_A;
+ }
if (UINT32_MAX == rtype)
{
fprintf (stderr,
@@ -321,7 +328,7 @@ run (void *cls,
if (! raw)
{
printf (">>> Looking for `%s' records under `%s'\n",
- lookup_type, lookup_name);
+ effective_lookup_type, lookup_name);
}
lr = GNUNET_GNS_lookup_with_tld (gns,
lookup_name,
--
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: GNS: Fix null pointer use,
gnunet <=