diff options
Diffstat (limited to 'net/wireshark/files')
| -rw-r--r-- | net/wireshark/files/patch-epan_dissectors_packet-its.c | 11 | ||||
| -rw-r--r-- | net/wireshark/files/patch-epan_dissectors_packet-kerberos.c | 11 | ||||
| -rw-r--r-- | net/wireshark/files/patch-writecap_pcapio.c | 11 |
3 files changed, 33 insertions, 0 deletions
diff --git a/net/wireshark/files/patch-epan_dissectors_packet-its.c b/net/wireshark/files/patch-epan_dissectors_packet-its.c new file mode 100644 index 000000000000..dbd0e521895b --- /dev/null +++ b/net/wireshark/files/patch-epan_dissectors_packet-its.c @@ -0,0 +1,11 @@ +--- epan/dissectors/packet-its.c.orig 2025-10-14 14:35:47 UTC ++++ epan/dissectors/packet-its.c +@@ -23047,7 +23047,7 @@ its_timestamp_fmt(char *s, uint64_t v) + static void + its_timestamp_fmt(char *s, uint64_t v) + { +- time_t secs = v / 1000 + 1072915200 - 5; ++ time_t secs = (time_t) ((time_t)v / 1000 + 1072915200 - 5); + struct tm *tm = gmtime(&secs); + snprintf(s, ITEM_LABEL_LENGTH, "%u-%02u-%02u %02u:%02u:%02u.%03u (%" PRIu64 ")", + tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, (uint32_t)(v % 1000), v diff --git a/net/wireshark/files/patch-epan_dissectors_packet-kerberos.c b/net/wireshark/files/patch-epan_dissectors_packet-kerberos.c new file mode 100644 index 000000000000..13c7bfbd0ac6 --- /dev/null +++ b/net/wireshark/files/patch-epan_dissectors_packet-kerberos.c @@ -0,0 +1,11 @@ +--- epan/dissectors/packet-kerberos.c.orig 2025-10-16 15:54:37 UTC ++++ epan/dissectors/packet-kerberos.c +@@ -3401,7 +3401,7 @@ read_keytab_file(const char *filename) + + /* generate origin string, describing where this key came from */ + for(i=0;i<key.principal->name.name_string.len;i++){ +- wmem_strbuf_append_printf(str_principal, "%s%s",(i?"/":""),key.principal->name.name_string.val[i])); ++ wmem_strbuf_append_printf(str_principal, "%s%s",(i?"/":""),key.principal->name.name_string.val[i]); + } + wmem_strbuf_append_printf(str_principal, "@%s",key.principal->realm); + new_key->key_origin = (char*)wmem_strbuf_get_str(str_principal); diff --git a/net/wireshark/files/patch-writecap_pcapio.c b/net/wireshark/files/patch-writecap_pcapio.c new file mode 100644 index 000000000000..f4d9f28a5f78 --- /dev/null +++ b/net/wireshark/files/patch-writecap_pcapio.c @@ -0,0 +1,11 @@ +--- writecap/pcapio.c.orig 2025-10-10 21:38:23 UTC ++++ writecap/pcapio.c +@@ -438,7 +438,7 @@ write_to_file(pcapio_writer* pfile, const uint8_t* dat + default: + nwritten = fwrite(data, data_length, 1, pfile->fh); + if (nwritten != 1) { +- if (ferror(pfile->fh)) { ++ if (ferror((FILE*) pfile->fh)) { + *err = errno; + } else { + *err = WTAP_ERR_SHORT_WRITE; |
