[tor-commits] [tor/master] Remove a dead BUG() check.

nickm at torproject.org nickm at torproject.org
Mon Feb 24 12:48:35 UTC 2020


commit bd0efb270219d02c75b8a6a1f7964cd986e2cdc6
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Jan 16 18:28:25 2020 -0500

    Remove a dead BUG() check.
---
 src/feature/hs/hs_descriptor.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/feature/hs/hs_descriptor.c b/src/feature/hs/hs_descriptor.c
index 7f28e1c34..c274ed758 100644
--- a/src/feature/hs/hs_descriptor.c
+++ b/src/feature/hs/hs_descriptor.c
@@ -1018,12 +1018,6 @@ desc_encode_v3(const hs_descriptor_t *desc,
   tor_assert(encoded_out);
   tor_assert(desc->plaintext_data.version == 3);
 
-  /* This is impossible; this is a member of desc.
-  if (BUG(desc->subcredential == NULL)) {
-    goto err;
-  }
-  */
-
   /* Build the non-encrypted values. */
   {
     char *encoded_cert;





More information about the tor-commits mailing list