From: Alan T. DeKok Date: Wed, 19 Aug 2015 11:38:02 +0000 (-0400) Subject: Don't check on proto. Addresses #1195 X-Git-Tag: release_3_0_10~211 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f504940effee5b40fc91fbe89e1a0e3149243c35;p=thirdparty%2Ffreeradius-server.git Don't check on proto. Addresses #1195 The "proto" field is implied in the sockfd field, so it's OK to just check sockfd and not proto --- diff --git a/src/lib/packet.c b/src/lib/packet.c index a8e506eb804..e29deb1465e 100644 --- a/src/lib/packet.c +++ b/src/lib/packet.c @@ -50,11 +50,6 @@ int fr_packet_cmp(RADIUS_PACKET const *a, RADIUS_PACKET const *b) if (a->sockfd < b->sockfd) return -1; if (a->sockfd > b->sockfd) return +1; -#ifdef WITH_TCP - if (a->proto < b->proto) return -1; - if (a->proto > b->proto) return +1; -#endif - /* * Source ports are pretty much random. */