projects
/
wpasupplicant
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2438698
)
Move addr_un definitions to avoid using out-of-scope buffer
author
Jouni Malinen
<j@w1.fi>
Fri, 2 Jan 2009 19:53:21 +0000
(21:53 +0200)
committer
Jouni Malinen
<j@w1.fi>
Fri, 2 Jan 2009 19:53:21 +0000
(21:53 +0200)
src/drivers/driver_test.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_test.c
b/src/drivers/driver_test.c
index
92137da
..
2a41cf2
100644
(file)
--- a/
src/drivers/driver_test.c
+++ b/
src/drivers/driver_test.c
@@
-842,6
+842,9
@@
static int wpa_driver_test_send_eapol(void *priv, const u8 *dest, u16 proto,
struct l2_ethhdr eth;
struct sockaddr *addr;
socklen_t alen;
+#ifdef DRIVER_TEST_UNIX
+ struct sockaddr_un addr_un;
+#endif /* DRIVER_TEST_UNIX */
wpa_hexdump(MSG_MSGDUMP, "test_send_eapol TX frame", data, data_len);
@@
-874,7
+877,6
@@
static int wpa_driver_test_send_eapol(void *priv, const u8 *dest, u16 proto,
}
} else {
#ifdef DRIVER_TEST_UNIX
- struct sockaddr_un addr_un;
struct stat st;
os_memset(&addr_un, 0, sizeof(addr_un));
addr_un.sun_family = AF_UNIX;