diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-03-26 10:13:29 +0100 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-03-26 10:13:29 +0100 |
commit | b23c010728c1c808796a7948aa7ff9f9a08966ac (patch) | |
tree | 6fab9793c1c40bd4c443c2ece2f9e79465a64fe1 /src/gnsrecord | |
parent | 85288987ac9b78e2a1617379e4600d6644199e26 (diff) | |
download | gnunet-b23c010728c1c808796a7948aa7ff9f9a08966ac.tar.gz gnunet-b23c010728c1c808796a7948aa7ff9f9a08966ac.zip |
-fix some coverity issues wrt gns
Diffstat (limited to 'src/gnsrecord')
-rw-r--r-- | src/gnsrecord/gnsrecord_misc.c | 2 | ||||
-rw-r--r-- | src/gnsrecord/gnunet-gnsrecord-tvg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gnsrecord/gnsrecord_misc.c b/src/gnsrecord/gnsrecord_misc.c index 82c38f19a..dacd7ca31 100644 --- a/src/gnsrecord/gnsrecord_misc.c +++ b/src/gnsrecord/gnsrecord_misc.c | |||
@@ -350,7 +350,7 @@ GNUNET_GNSRECORD_block_get_expiration (const struct | |||
350 | case GNUNET_GNSRECORD_TYPE_PKEY: | 350 | case GNUNET_GNSRECORD_TYPE_PKEY: |
351 | return GNUNET_TIME_absolute_ntoh (block->ecdsa_block.expiration_time); | 351 | return GNUNET_TIME_absolute_ntoh (block->ecdsa_block.expiration_time); |
352 | default: | 352 | default: |
353 | return GNUNET_TIME_absolute_get_zero_ (); | 353 | GNUNET_break (0); /* Hopefully we never get here, but we might */ |
354 | } | 354 | } |
355 | return GNUNET_TIME_absolute_get_zero_ (); | 355 | return GNUNET_TIME_absolute_get_zero_ (); |
356 | 356 | ||
diff --git a/src/gnsrecord/gnunet-gnsrecord-tvg.c b/src/gnsrecord/gnunet-gnsrecord-tvg.c index 47b13bdab..d6b35544c 100644 --- a/src/gnsrecord/gnunet-gnsrecord-tvg.c +++ b/src/gnsrecord/gnunet-gnsrecord-tvg.c | |||
@@ -172,7 +172,7 @@ run (void *cls, | |||
172 | fprintf (stdout, "RRBLOCK:\n"); | 172 | fprintf (stdout, "RRBLOCK:\n"); |
173 | print_bytes (rrblock, block_size, 8); | 173 | print_bytes (rrblock, block_size, 8); |
174 | fprintf (stdout, "\n"); | 174 | fprintf (stdout, "\n"); |
175 | 175 | GNUNET_free (rdata); | |
176 | } | 176 | } |
177 | 177 | ||
178 | 178 | ||