[Nettrace] Port can have 5 characters.
authorAndersBroman <anders.broman@ericsson.com>
Mon, 26 Oct 2015 17:16:31 +0000 (18:16 +0100)
committerAnders Broman <a.broman58@gmail.com>
Mon, 26 Oct 2015 17:20:37 +0000 (17:20 +0000)
Change-Id: Id09967378165b23358b4787e6ab96db42c41d2fd
Reviewed-on: https://code.wireshark.org/review/11288
Reviewed-by: Anders Broman <a.broman58@gmail.com>
wiretap/nettrace_3gpp_32_423.c

index 781f82544061a5b5e7270538a8bbe24cf2b575ae..cf8afa2a9c5b0fe89b7e932d074c07ad8c6044c0 100644 (file)
@@ -788,7 +788,7 @@ create_temp_pcapng_file(wtap *wth, int *err, gchar **err_info, nettrace_3gpp_32_
                                /* Excample from one trace, unsure if it's generic...
                                 * {address == 192.168.73.1, port == 5062, transport == Udp}
                                 */
-                               scan_found = sscanf(curr_pos, "%*s %3u.%3u.%3u.%3u, %*s %*s %4u, %*s %*s %4s",
+                               scan_found = sscanf(curr_pos, "%*s %3u.%3u.%3u.%3u, %*s %*s %5u, %*s %*s %4s",
                                        &d1, &d2, &d3, &d4, &port, transp_str);
                                if (scan_found == 6) {
                                        exported_pdu_info.precense_flags = exported_pdu_info.precense_flags + EXP_PDU_TAG_IP_SRC_BIT + EXP_PDU_TAG_SRC_PORT_BIT;
@@ -835,7 +835,7 @@ create_temp_pcapng_file(wtap *wth, int *err, gchar **err_info, nettrace_3gpp_32_
                                /* Excample from one trace, unsure if it's generic...
                                * {address == 192.168.73.1, port == 5062, transport == Udp}
                                */
-                               scan_found = sscanf(curr_pos, "%*s %3u.%3u.%3u.%3u, %*s %*s %4u, %*s %*s %4s",
+                               scan_found = sscanf(curr_pos, "%*s %3u.%3u.%3u.%3u, %*s %*s %5u, %*s %*s %4s",
                                        &d1, &d2, &d3, &d4, &port, transp_str);
                                if (scan_found == 6) {
                                        exported_pdu_info.precense_flags = exported_pdu_info.precense_flags + EXP_PDU_TAG_IP_DST_BIT + EXP_PDU_TAG_DST_PORT_BIT;