aboutsummaryrefslogtreecommitdiff
path: root/pcap-rpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-11-28 13:45:25 -0800
committerGuy Harris <guy@alum.mit.edu>2017-11-28 13:45:25 -0800
commit2972769d03dd60d4bce233a12d77a3464f0d9dc4 (patch)
tree6b9b2d93f1cd6b6c188f6c9ca6ffdce71cc67b5d /pcap-rpcap.c
parentcb0a4528b2919debbf7a1c62668c486b2d3da182 (diff)
Fail if a given protocol version *isn't* supported.
(Broken when RPCAP_VERSION_IS_SUPPORTED() was introduced.)
Diffstat (limited to 'pcap-rpcap.c')
-rw-r--r--pcap-rpcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-rpcap.c b/pcap-rpcap.c
index 84d3af5c..d0b4d99b 100644
--- a/pcap-rpcap.c
+++ b/pcap-rpcap.c
@@ -1976,7 +1976,7 @@ static int rpcap_sendauth(SOCKET sock, uint8 *ver, struct pcap_rmtauth *auth, ch
*
* Do we also support it?
*/
- if (RPCAP_VERSION_IS_SUPPORTED(header.ver))
+ if (!RPCAP_VERSION_IS_SUPPORTED(header.ver))
{
/*
* No, so there's no version we both support.