miniupnpd/netfilter: Fixing a bug in clean_pinhole_list()
This commit is contained in:
parent
dd9cbbb7e8
commit
03005fa291
|
@ -1,4 +1,7 @@
|
|||
$Id: Changelog.txt,v 1.300 2012/09/15 15:35:08 nanard Exp $
|
||||
$Id: Changelog.txt,v 1.301 2012/09/18 08:29:16 nanard Exp $
|
||||
|
||||
2012/09/18:
|
||||
Fixing a bug in clean_pinhole_list() under linux/netfilter
|
||||
|
||||
2012/09/15:
|
||||
Adding an informational message at startup
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: iptpinhole.c,v 1.7 2012/05/08 20:41:45 nanard Exp $ */
|
||||
/* $Id: iptpinhole.c,v 1.8 2012/09/18 08:29:17 nanard Exp $ */
|
||||
/* MiniUPnP project
|
||||
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||
* (c) 2012 Thomas Bernard
|
||||
|
@ -402,7 +402,7 @@ clean_pinhole_list(unsigned int * next_timestamp)
|
|||
p = p->entries.le_next;
|
||||
}
|
||||
}
|
||||
if(next_timestamp)
|
||||
if(next_timestamp && (min_ts != UINT_MAX))
|
||||
*next_timestamp = min_ts;
|
||||
return n;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue