aboutsummaryrefslogtreecommitdiff
path: root/pcap-rpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-02-05 13:19:36 -0800
committerGuy Harris <guy@alum.mit.edu>2019-02-05 13:19:36 -0800
commitd8fd5c4489a19f3501ae95121074a0348383a92d (patch)
treede9e18c23c50a7f651dd37007d9587f8dfd3545a /pcap-rpcap.c
parent06a4b58164bac277bad9d4ff33168a1f62131e3a (diff)
Squelch a compiler warning.
If the minimum version the client supports is 0, the maximum version the server supports can't be less than that (they're unsigned, hence never negative), so we don't need to check whether the server maximum version is less than the client minimum version.
Diffstat (limited to 'pcap-rpcap.c')
-rw-r--r--pcap-rpcap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pcap-rpcap.c b/pcap-rpcap.c
index c06864f9..2e21ba0f 100644
--- a/pcap-rpcap.c
+++ b/pcap-rpcap.c
@@ -2049,12 +2049,14 @@ static int rpcap_doauth(SOCKET sockctrl, SSL *ssl, uint8 *ver, struct pcap_rmtau
*/
ourvers = authreply.maxvers;
+#if RPCAP_MIN_VERSION != 0
/*
* If that's less than the minimum version we support, we
* can't communicate.
*/
if (ourvers < RPCAP_MIN_VERSION)
goto novers;
+#endif
/*
* If that's greater than the maximum version we support,