[Bug 290250] network/wireshark: build fails due to upstream bug in packet-kerberos.c

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 15 Oct 2025 07:15:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290250

            Bug ID: 290250
           Summary: network/wireshark: build fails due to upstream bug in
                    packet-kerberos.c
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: freebsd@otoh.org

When building wireshark-nox11, the build fails due to an extaneous ')' in
packet-kerberos.c

I've written it up for upstream, so it'll eventually get fixed:
https://gitlab.com/wireshark/wireshark/-/issues/20796

Patch is:

diff --git i/epan/dissectors/packet-kerberos.c
w/epan/dissectors/packet-kerberos.c
index c427b6b797..94321a5020 100644
--- i/epan/dissectors/packet-kerberos.c
+++ w/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);

-- 
You are receiving this mail because:
You are the assignee for the bug.