Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167187140
D58754.id183778.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
609 B
Referenced Files
None
Subscribers
None
D58754.id183778.diff
View Options
diff --git a/sys/net/if_ovpn.c b/sys/net/if_ovpn.c
--- a/sys/net/if_ovpn.c
+++ b/sys/net/if_ovpn.c
@@ -2188,6 +2188,9 @@
else
ret = crypto_dispatch(crp);
if (ret) {
+ crypto_freereq(crp);
+ ovpn_peer_release_ref(peer, false);
+ m_freem(m);
OVPN_COUNTER_ADD(sc, lost_data_pkts_out, 1);
if_inc_counter(sc->ifp, IFCOUNTER_OERRORS, 1);
}
@@ -2636,6 +2639,9 @@
else
ret = crypto_dispatch(crp);
if (ret != 0) {
+ crypto_freereq(crp);
+ atomic_add_int(&sc->refcount, -1);
+ m_freem(m);
OVPN_COUNTER_ADD(sc, lost_data_pkts_in, 1);
if_inc_counter(sc->ifp, IFCOUNTER_IERRORS, 1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 6:03 PM (10 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36497886
Default Alt Text
D58754.id183778.diff (609 B)
Attached To
Mode
D58754: if_ovpn: free crp, mbuf, and release refcount on crypto_dispatch() failure
Attached
Detach File
Event Timeline
Log In to Comment