aboutsummaryrefslogtreecommitdiffstats
path: root/capture_wpcap_packet.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-04-25 00:12:43 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-04-25 00:12:43 +0000
commit5cf4430cfaf245f37c0c0578449b6f1bf6b94b1f (patch)
treecf3991d56b77ffb0d36185edaf993041d060c564 /capture_wpcap_packet.c
parentb10474d71ca7eb9fcc1260f8e069b71d3d566153 (diff)
copy input data into the buffer given to PacketRequest(), so functions with input parameters will also work
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17986 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_wpcap_packet.c')
-rw-r--r--capture_wpcap_packet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/capture_wpcap_packet.c b/capture_wpcap_packet.c
index 1b132b95ad..d72cec8f3c 100644
--- a/capture_wpcap_packet.c
+++ b/capture_wpcap_packet.c
@@ -242,6 +242,7 @@ wpcap_packet_request(void *adapter, ULONG Oid, int set, char *value, unsigned in
OidData->Oid = Oid;
OidData->Length = *length;
+ memcpy(OidData->Data, value, *length);
Status = p_PacketRequest(adapter, set, OidData);