forked from osmocom/wireshark
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:
parent
3acd12510b
commit
f4047c4b93
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue