aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-10-02 16:19:55 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-10-02 16:19:55 +0000
commit67067d3ca3d23f2863c69a86f9412c806abcfc39 (patch)
tree43da296aaad92668db36ffda59e7e1e841e00d77 /epan/proto.c
parent82e0579b68ac689e15beea2a9e47270de9f4aaca (diff)
Removed the protocol registration updates in the splash screen for Python
dissectors, because it does not work as expected and causes an assert. Added generic splash updates for python register and handoff instead. This should fix bug 5431. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39221 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c
index e83859d8bf..adbcb53dc8 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -393,7 +393,9 @@ proto_init(void (register_all_protocols_func)(register_cb cb, gpointer client_da
register_all_protocols_func(cb, client_data);
#ifdef HAVE_PYTHON
/* Now scan for python protocols */
- register_all_py_protocols_func(cb, client_data);
+ if(cb)
+ (*cb)(RA_PYTHON_REGISTER, NULL, client_data);
+ register_all_py_protocols_func();
#endif
#ifdef HAVE_PLUGINS
@@ -413,7 +415,9 @@ proto_init(void (register_all_protocols_func)(register_cb cb, gpointer client_da
#ifdef HAVE_PYTHON
/* Now do the same with python dissectors */
- register_all_py_handoffs_func(cb, client_data);
+ if(cb)
+ (*cb)(RA_PYTHON_HANDOFF, NULL, client_data);
+ register_all_py_handoffs_func();
#endif
#ifdef HAVE_PLUGINS