Fixed typos. When terminating a connection, it's status is not only set to

remove=1 but also active=0.
This commit is contained in:
Guus Sliepen 2000-05-27 19:23:20 +00:00
parent e4ff969a98
commit 028659bfbf
3 changed files with 7 additions and 6 deletions

View file

@ -46,10 +46,10 @@ conn_list_t *lookup_conn(ip_t ip)
cp
/* Exact match suggested by James B. MacLean */
for(p = conn_list; p != NULL; p = p->next)
if((ip == p->vpn_ip) && p->active)
if((ip == p->vpn_ip) && p->status.active)
return p;
for(p = conn_list; p != NULL; p = p->next)
if(((ip & p->vpn_mask) == (p->vpn_ip & p->vpn_mask)) && p->active)
if(((ip & p->vpn_mask) == (p->vpn_ip & p->vpn_mask)) && p->status.active)
return p;
cp
return NULL;