]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't check on proto. Addresses #1195
authorAlan T. DeKok <aland@freeradius.org>
Wed, 19 Aug 2015 11:38:02 +0000 (07:38 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 19 Aug 2015 11:38:02 +0000 (07:38 -0400)
The "proto" field is implied in the sockfd field, so it's OK
to just check sockfd and not proto

src/lib/packet.c

index a8e506eb8040c478e119e70bbc3f354ba8d94cf2..e29deb1465e1463c6bc45347b76e751785351dcd 100644 (file)
@@ -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.
         */