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
This commit is contained in:
Anders Broman 2008-08-21 06:28:16 +00:00
parent 3acd12510b
commit f4047c4b93
1 changed files with 7 additions and 1 deletions

View File

@ -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;