aboutsummaryrefslogtreecommitdiffstats
path: root/src/fnettrace-sni/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fnettrace-sni/main.c')
-rw-r--r--src/fnettrace-sni/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fnettrace-sni/main.c b/src/fnettrace-sni/main.c
index 71793a560..d0f75dac9 100644
--- a/src/fnettrace-sni/main.c
+++ b/src/fnettrace-sni/main.c
@@ -77,6 +77,7 @@ static void print_tls(uint32_t ip_dest, unsigned char *pkt, unsigned len) {
77 snprintf(tmp, sizeof(last), "%02d:%02d:%02d %-15s %s", t->tm_hour, t->tm_min, t->tm_sec, ip, name); 77 snprintf(tmp, sizeof(last), "%02d:%02d:%02d %-15s %s", t->tm_hour, t->tm_min, t->tm_sec, ip, name);
78 if (strcmp(tmp, last)) { 78 if (strcmp(tmp, last)) {
79 printf("%s\n", tmp); 79 printf("%s\n", tmp);
80 fflush(0);
80 strcpy(last, tmp); 81 strcpy(last, tmp);
81 } 82 }
82 } 83 }
@@ -86,6 +87,7 @@ static void print_tls(uint32_t ip_dest, unsigned char *pkt, unsigned len) {
86 87
87errout: 88errout:
88 printf("%02d:%02d:%02d %-15s Error: invalid TLS packet\n", t->tm_hour, t->tm_min, t->tm_sec, ip); 89 printf("%02d:%02d:%02d %-15s Error: invalid TLS packet\n", t->tm_hour, t->tm_min, t->tm_sec, ip);
90 fflush(0);
89 return; 91 return;
90 92
91nosni: 93nosni: