diff options
author | netblue30 <netblue30@protonmail.com> | 2022-12-09 10:27:02 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2022-12-09 10:27:02 -0500 |
commit | 01f9dc87bfe191a9e1ded7a1a1d52a61bbe227bd (patch) | |
tree | f2e07d56ecb48edfb8b3c34acb938ed4e690f54a /src/fnettrace-sni/main.c | |
parent | Merge pull request #5504 from kmk3/build-cflags-improvements (diff) | |
download | firejail-01f9dc87bfe191a9e1ded7a1a1d52a61bbe227bd.tar.gz firejail-01f9dc87bfe191a9e1ded7a1a1d52a61bbe227bd.tar.zst firejail-01f9dc87bfe191a9e1ded7a1a1d52a61bbe227bd.zip |
small nettrace fixes
Diffstat (limited to 'src/fnettrace-sni/main.c')
-rw-r--r-- | src/fnettrace-sni/main.c | 2 |
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 | ||
87 | errout: | 88 | errout: |
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 | ||
91 | nosni: | 93 | nosni: |