]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-rpcap.c
Fail if a given protocol version *isn't* supported.
[libpcap] / pcap-rpcap.c
index 84d3af5cc81fe58ad3c2753aa9f696ebce18508a..d0b4d99bfed7234475d62b8aec6d72f20dc4afc7 100644 (file)
@@ -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.