nftpinhole.c: fix get_pinhole_info()
this whole file should be reviewed carefully fixes #459
This commit is contained in:
parent
3716381308
commit
409ba9c0f2
|
@ -370,7 +370,8 @@ get_pinhole_info(unsigned short uid,
|
||||||
*proto = p->proto;
|
*proto = p->proto;
|
||||||
|
|
||||||
if (timestamp) {
|
if (timestamp) {
|
||||||
if (sscanf(p->desc, PINEHOLE_LABEL_FORMAT_SKIPDESC,(int *) &uid, &ts) != 2) {
|
int uid_temp;
|
||||||
|
if (sscanf(p->desc, PINEHOLE_LABEL_FORMAT_SKIPDESC, &uid_temp, &ts) != 2) {
|
||||||
syslog(LOG_DEBUG, "rule with label '%s' is not a IGD pinhole", p->desc);
|
syslog(LOG_DEBUG, "rule with label '%s' is not a IGD pinhole", p->desc);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue