diff options
author | brueffer <brueffer@FreeBSD.org> | 2011-10-07 21:00:26 +0000 |
---|---|---|
committer | brueffer <brueffer@FreeBSD.org> | 2011-10-07 21:00:26 +0000 |
commit | 890596362264259cad90c931168bb69cad04ce59 (patch) | |
tree | aa2cf24d69467a569d2ef6733d804d42bc0aab56 | |
parent | 18a321c14921a038b30e418ae470e26651c0c76a (diff) | |
download | FreeBSD-src-890596362264259cad90c931168bb69cad04ce59.zip FreeBSD-src-890596362264259cad90c931168bb69cad04ce59.tar.gz |
Add missing va_end() in an error case to clean up after va_start()
(already done in the non-error case).
CID: 4726
Found with: Coverity Prevent(tm)
MFC after: 1 week
-rw-r--r-- | sys/netipsec/key.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index aefc0ca..6fe17cd 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -1764,6 +1764,7 @@ key_gather_mbuf(m, mhp, ndeep, nitem, va_alist) fail: m_freem(result); + va_end(ap); return NULL; } |