aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-10-24 12:03:19 -0700
committerGuy Harris <guy@alum.mit.edu>2017-10-24 19:03:58 +0000
commit08a490328387eafb7f9d20293a2a5e97e6cf4268 (patch)
treed3290368b0907ca74442d6a190f1ce4f86c360e3
parent15ce2db13afa087be8a0329e72411f7d1b2b77f6 (diff)
Fix registration of SIP atop SSL/TLS.
See https://ask.wireshark.org/questions/64151/sip-tls-is-only-shown-as-tcp. Change-Id: Ife182136601007ff6a5713666d9fada5abcd00b9 Reviewed-on: https://code.wireshark.org/review/24041 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--epan/dissectors/packet-sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c
index 429c72f6d8..2c74d7a768 100644
--- a/epan/dissectors/packet-sip.c
+++ b/epan/dissectors/packet-sip.c
@@ -7260,7 +7260,8 @@ proto_reg_handoff_sip(void)
ssl_dissector_delete(saved_sip_tls_port, sip_tcp_handle);
}
/* Set our port number for future use */
- ssl_dissector_add(saved_sip_tls_port, sip_tcp_handle);
+ ssl_dissector_add(sip_tls_port, sip_tcp_handle);
+ saved_sip_tls_port = sip_tls_port;
exported_pdu_tap = find_tap_id(EXPORT_PDU_TAP_NAME_LAYER_7);
}