mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
Looking at {ah,esp}_input_cb it seems we might be able to end up
without an mtag in ipsec4_common_input_cb. So in case of !IPCOMP (AH,ESP) only change the m_tag_id if an mtag was passed to ipsec4_common_input_cb. Found with: Coverity Prevent(tm) CID: 2523
This commit is contained in:
parent
76507741ab
commit
0e41ce659b
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ ipsec4_common_input_cb(struct mbuf *m, struct secasvar *sav,
|
|||
tdbi->spi = sav->spi;
|
||||
|
||||
m_tag_prepend(m, mtag);
|
||||
} else {
|
||||
} else if (mt != NULL) {
|
||||
mt->m_tag_id = PACKET_TAG_IPSEC_IN_DONE;
|
||||
/* XXX do we need to mark m_flags??? */
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue