Browse code

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 authored on 20/02/2014 10:04:49
Showing 1 changed files
... ...
@@ -342,8 +342,7 @@ static inline int get_all_mem_ucontacts(void *buf, int len, unsigned int flags,
342 342
 
343 343
 					if(ul_keepalive_timeout>0 && c->last_keepalive>0)
344 344
 					{
345
-						if((c->cflags & nat_bflag) != 0 && c->sock!=NULL
346
-								&& c->sock->proto==PROTO_UDP)
345
+						if(c->sock!=NULL && c->sock->proto==PROTO_UDP)
347 346
 						{
348 347
 							if(c->last_keepalive+ul_keepalive_timeout < tnow)
349 348
 							{