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

[tor-commits] [tlsdate/debian-master] Only emit the label count once per hostname



commit 04ae3c26aaf824d049bc269201842813b273113c
Author: Jacob Appelbaum <jacob@xxxxxxxxxxxxx>
Date:   Fri Apr 26 13:46:22 2013 -0700

    Only emit the label count once per hostname
---
 src/tlsdate-helper.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/tlsdate-helper.c b/src/tlsdate-helper.c
index 3e85bed..d6a9d4b 100644
--- a/src/tlsdate-helper.c
+++ b/src/tlsdate-helper.c
@@ -328,16 +328,15 @@ dns_label_count(char *label, char *delim)
     if (saveptr[0] != delim[0])
     {
       label_count++;
-      verb ("V: label found; total label count: %d\n", label_count);
     }
     do
     {
       // Find all subsequent labels
       label_count++;
       saveptr_tmp = strtok_r(NULL, delim, &saveptr);
-      verb ("V: label found; total label count: %d\n", label_count);
     } while (NULL != saveptr_tmp);
   }
+  verb ("V: label found; total label count: %d\n", label_count);
   free(label_tmp);
   return label_count;
 }



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