Commit 2b637217 authored by Arne Øslebø's avatar Arne Øslebø
Browse files

bugfix

git-svn-id: file:///home/svn/mapi/trunk@796 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 4e5e6fb9
......@@ -437,11 +437,9 @@ mapid_connect(mapidlib_instance_t *i,int fd)
#endif
flow->status = FLOW_ACTIVE;
//Update global function list
//Update global function list
((mapid_flow_info_t*)flist_get(flow->hwinfo->gflist->fflist,flow->fd))->status=FLOW_ACTIVE;
time(&flow->start);
return 0;
......@@ -1035,7 +1033,6 @@ void mapid_process_pkt(mapidlib_instance_t *i,
#ifdef WITH_PRIORITIES
int j = 0;
for(j = 0; j < PRIORITIES; j++)
{
n = flist_head(i->flowlist[j]);
......@@ -1046,11 +1043,12 @@ void mapid_process_pkt(mapidlib_instance_t *i,
// a color var to help trackers from continunsly searching application
// strings
color = 0;
while (n)
{
flow=flist_data(n);
n = flist_next(n);
if(flow->status==FLOW_ACTIVE) {
#ifdef WITH_MODIFY_PKTS
if(flow->modifies==1) {
......@@ -1089,11 +1087,8 @@ void mapid_process_pkt(mapidlib_instance_t *i,
}
n2 = flist_next(n2);
}
n = flist_next(n);
} else if(flow->delete==1) {
n = flist_next(n);
delete_flow(i,flow);
}
} else if(flow->delete==1)
delete_flow(i,flow);
}
#ifdef WITH_PRIORITIES
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment