]> The Tcpdump Group git mirrors - libpcap/commit
Clean up reading error string from RPCAP_MSG_ERROR messages.
authorGuy Harris <[email protected]>
Sat, 7 Oct 2017 21:40:09 +0000 (14:40 -0700)
committerGuy Harris <[email protected]>
Sat, 7 Oct 2017 21:40:09 +0000 (14:40 -0700)
commit5573aedf9dd98eebc22541ad75155f025cebd088
treeb6e6edf4002434515be6eddde63d2e50cb868cab
parente158c2422761f347abbfcc322d094bfae201297c
Clean up reading error string from RPCAP_MSG_ERROR messages.

Add *another* needed va_end().

When receiving the error string, don't use the same buffer for the error
string and any error message returned by sock_recv(); it might be safe
to do so, but it's not very clean to assume that.

If the error string length is 0, don't read anything, just provide an
empty string.
rpcap-protocol.c