artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25d240d
)
Use m_freem() in error case. Found by Maxime Villard
author
claudio
<claudio@openbsd.org>
Fri, 8 Dec 2017 21:59:05 +0000
(21:59 +0000)
committer
claudio
<claudio@openbsd.org>
Fri, 8 Dec 2017 21:59:05 +0000
(21:59 +0000)
OK bluhm@
sys/netmpls/mpls_input.c
patch
|
blob
|
history
diff --git
a/sys/netmpls/mpls_input.c
b/sys/netmpls/mpls_input.c
index
20c395e
..
c7b5c0d
100644
(file)
--- a/
sys/netmpls/mpls_input.c
+++ b/
sys/netmpls/mpls_input.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mpls_input.c,v 1.6
3 2017/12/08 21:56:22
claudio Exp $ */
+/* $OpenBSD: mpls_input.c,v 1.6
4 2017/12/08 21:59:05
claudio Exp $ */
/*
* Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org>
@@
-313,7
+313,7
@@
mpls_ip_adjttl(struct mbuf *m, u_int8_t ttl)
}
/* make sure we have a valid header */
if (in_cksum(m, hlen) != 0) {
- m_free(m);
+ m_free
m
(m);
return NULL;
}