Browse Source

usrloc: remove the filter on nat_bflag for keepalive contact expiration

- keepalives can be sent even for non-natted contacts
- reported by Kristian Kielhofner
Daniel-Constantin Mierla 11 years ago
parent
commit
aa2ee6e1d9
1 changed files with 1 additions and 2 deletions
  1. 1 2
      modules/usrloc/dlist.c

+ 1 - 2
modules/usrloc/dlist.c

@@ -342,8 +342,7 @@ static inline int get_all_mem_ucontacts(void *buf, int len, unsigned int flags,
 
 
 					if(ul_keepalive_timeout>0 && c->last_keepalive>0)
 					if(ul_keepalive_timeout>0 && c->last_keepalive>0)
 					{
 					{
-						if((c->cflags & nat_bflag) != 0 && c->sock!=NULL
-								&& c->sock->proto==PROTO_UDP)
+						if(c->sock!=NULL && c->sock->proto==PROTO_UDP)
 						{
 						{
 							if(c->last_keepalive+ul_keepalive_timeout < tnow)
 							if(c->last_keepalive+ul_keepalive_timeout < tnow)
 							{
 							{