From f4047c4b938752a3802aed0bb0e932fb046c9dce Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Thu, 21 Aug 2008 06:28:16 +0000 Subject: From Neil Piercy: Patch to tap.c which simply returns the same tap_id if the register_tap is called twice with the same name - I can't see any downside to this. ( Needed for the gsm_a split -Anders). svn path=/trunk/; revision=26051 --- epan/tap.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'epan/tap.c') diff --git a/epan/tap.c b/epan/tap.c index fb47372aec..d53bdd0432 100644 --- a/epan/tap.c +++ b/epan/tap.c @@ -117,7 +117,13 @@ int register_tap(const char *name) { tap_dissector_t *td, *tdl; - int i; + int i, tap_id; + + if(tap_dissector_list){ + tap_id=find_tap_id(name); + if (tap_id) + return tap_id; + } td=g_malloc(sizeof(tap_dissector_t)); td->next=NULL; -- cgit v1.2.1