FreeBSD Bugzilla – Attachment 185935 Details for
Bug 221849
Kernel panic, kqueue related NULL pointer dereference sys/kern/kern_event.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
udpencap.diff (text/plain), 762 bytes, created by
Andrey V. Elsukov
on 2017-08-30 19:40:36 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Andrey V. Elsukov
Created:
2017-08-30 19:40:36 UTC
Size:
762 bytes
patch
obsolete
>Index: sys/netipsec/udpencap.c >=================================================================== >--- sys/netipsec/udpencap.c (revision 322885) >+++ sys/netipsec/udpencap.c (working copy) >@@ -120,7 +120,7 @@ udp_ipsec_input(struct mbuf *m, int off, int af) > struct udphdr *udp; > struct ip *ip; > uint32_t spi; >- int error, hlen; >+ int hlen; > > /* > * Just return if packet doesn't have enough data. >@@ -205,10 +205,7 @@ udp_ipsec_input(struct mbuf *m, int off, int af) > * will do this anyway, so don't touch them here. > */ > ESPSTAT_INC(esps_input); >- error = (*sav->tdb_xform->xf_input)(m, sav, hlen, off); >- if (error != 0) >- key_freesav(&sav); >- >+ (*sav->tdb_xform->xf_input)(m, sav, hlen, off); > return (EINPROGRESS); /* Consumed by IPsec. */ > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221849
: 185935