]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
strcmp() returns large values. CID #1504056
authorAlan T. DeKok <aland@freeradius.org>
Mon, 11 Apr 2022 23:42:09 +0000 (19:42 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 11 Apr 2022 23:42:09 +0000 (19:42 -0400)
src/listen/detail/proto_detail_file.c

index 86b94f0d9a455d806efe3f3b6716fe80180a9116..5d6d3e88fd8ad0ce49eeda8fbd6997f28575e4b0 100644 (file)
@@ -667,7 +667,7 @@ static int8_t _detail_file_cmp(void const *one, void const *two)
 {
        proto_detail_file_t const *a = one, *b = two;
 
-       return strcmp(a->filename, b->filename);
+       return CMP(strcmp(a->filename, b->filename), 0);
 }
 
 /*