Restore previous behaviour - always match rule when we doing tagging,

even when tag is already exists.

Reported by:	Vadim Goncharov
MFC after:	1 week
This commit is contained in:
ae 2011-04-12 15:20:34 +00:00
parent ab20ea28a3
commit 9500525271

View File

@ -1793,10 +1793,13 @@ do { \
if (mtag != NULL)
m_tag_delete(m, mtag);
match = 0;
} else if (mtag == NULL) {
if ((mtag = m_tag_alloc(MTAG_IPFW,
tag, 0, M_NOWAIT)) != NULL)
m_tag_prepend(m, mtag);
} else {
if (mtag == NULL) {
mtag = m_tag_alloc( MTAG_IPFW,
tag, 0, M_NOWAIT);
if (mtag != NULL)
m_tag_prepend(m, mtag);
}
match = 1;
}
break;