diff options
Diffstat (limited to 'epan/conversation_table.c')
-rw-r--r-- | epan/conversation_table.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/conversation_table.c b/epan/conversation_table.c index 57bbb6f9d7..61ec310a19 100644 --- a/epan/conversation_table.c +++ b/epan/conversation_table.c @@ -88,14 +88,14 @@ dissector_conversation_init(const char *opt_arg, void* userdata) */ register_ct_t* get_conversation_by_proto_id(int proto_id) { - GSList *ct; - register_ct_t *table; + GSList *ct; + register_ct_t *table; - for(ct = registered_ct_tables; ct != NULL; ct = g_slist_next(ct)){ - table = (register_ct_t*)ct->data; - if ((table) && (table->proto_id == proto_id)) + for(ct = registered_ct_tables; ct != NULL; ct = g_slist_next(ct)){ + table = (register_ct_t*)ct->data; + if ((table) && (table->proto_id == proto_id)) return table; - } + } return NULL; } |