[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit bd0efb270219d02c75b8a6a1f7964cd986e2cdc6
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits