FreeBSD Bugzilla – Attachment 241318 Details for
Bug 270649
hostapd and wpa_supplicant use uninitialized ptr if interface disappears
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix uninitialized packet pointer on error
0001-wpa_supplicant-hostapd-Fix-uninitialized-packet-poin.patch (text/plain), 1.09 KB, created by
Cy Schubert
on 2023-04-06 04:15:09 UTC
(
hide
)
Description:
Fix uninitialized packet pointer on error
Filename:
MIME Type:
Creator:
Cy Schubert
Created:
2023-04-06 04:15:09 UTC
Size:
1.09 KB
patch
obsolete
>From 1d72835a195d403e6bdddfc79f7c519d622f5a2c Mon Sep 17 00:00:00 2001 >From: Cy Schubert <cy@FreeBSD.org> >Date: Wed, 5 Apr 2023 21:07:15 -0700 >Subject: [PATCH] wpa_supplicant/hostapd: Fix uninitialized packet pointer on > error > >The packet pointer (called packet) will remain uninitialized when >pcap_next_ex() returns an error. This occurs when the wlan >interfase is shut down using ifconfig destroy. > >PR: 270649 >Reported by: Robert Morris <rtm@lcs.mit.edu> >Fixes: 6e5d01124fd4 >MFC after: 3 days >--- > contrib/wpa/src/l2_packet/l2_packet_freebsd.c | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/contrib/wpa/src/l2_packet/l2_packet_freebsd.c b/contrib/wpa/src/l2_packet/l2_packet_freebsd.c >index 0461758ff210..7b96bd033c87 100644 >--- a/contrib/wpa/src/l2_packet/l2_packet_freebsd.c >+++ b/contrib/wpa/src/l2_packet/l2_packet_freebsd.c >@@ -85,6 +85,7 @@ static void l2_packet_receive(int sock, void *eloop_ctx, void *sock_ctx) > > if (pcap_next_ex(pcap, &hdr, &packet) == -1) { > wpa_printf(MSG_ERROR, "Error reading packet, has device disappeared?"); >+ packet = NULL; > eloop_terminate(); > } > >-- >2.40.0 >
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 270649
: 241318