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

ioerror at torproject.org ioerror at torproject.org
Fri Apr 26 20:51:14 UTC 2013


commit 04ae3c26aaf824d049bc269201842813b273113c
Author: Jacob Appelbaum <jacob at appelbaum.net>
Date:   Fri Apr 26 13:46:22 2013 -0700

    Only emit the label count once per hostname
---
 src/tlsdate-helper.c |    3 +--
 1 files changed, 1 insertions(+), 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;
 }



More information about the tor-commits mailing list