Fix incorrect check.
Bug: 37347846
Test: No error on data +%s
Change-Id: I7e88ea842af29ce4a366c25a3f79c09b63a25004
diff --git a/libc/tzcode/bionic.cpp b/libc/tzcode/bionic.cpp
index fbbbd24..b486174 100644
--- a/libc/tzcode/bionic.cpp
+++ b/libc/tzcode/bionic.cpp
@@ -133,7 +133,7 @@
return -1;
}
- if (ntohl(header.data_offset) > ntohl(header.index_offset)) {
+ if (ntohl(header.index_offset) > ntohl(header.data_offset)) {
fprintf(stderr, "%s: invalid data and index offsets in \"%s\": %u %u\n",
__FUNCTION__, path, ntohl(header.data_offset), ntohl(header.index_offset));
close(fd);