diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-06-03 21:57:39 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-06-04 04:58:13 +0000 |
commit | b70a2370c14d647b122eedfe7f9f3d6ba79595c4 (patch) | |
tree | 2ef12469d10cd9d17375ca152f070e74e25b0163 /ui | |
parent | 0c166f947e9c0f92f3c9bd56fe3db59589511b60 (diff) | |
download | wireshark-b70a2370c14d647b122eedfe7f9f3d6ba79595c4.tar.gz |
Allocate a buffer in cap_pipe_dispatch(), not in capture_loop_dispatch().
The buffer is only used when reading from a pipe; no need to allocate it
when capturing from a pcap_t.
Doing it in cap_pipe_dispatch() makes it clearer when the buffer exists
and when it doesn't.
Change-Id: I0256daae8478f1100fdde96a16a404465ec200b3
Reviewed-on: https://code.wireshark.org/review/21930
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui')
0 files changed, 0 insertions, 0 deletions