Fix CVE-2016-1531
[exim.git] / src / src / string.c
index 0e73e2c79c73ef2e65783b46b47e06fbfbb16bbe..145a6bd1122d352e759c1e0a0cd806aab0bed9c7 100644 (file)
@@ -1589,6 +1589,17 @@ return yield;
 #endif  /* COMPILE_UTILITY */
 
 
+#ifndef COMPILE_UTILITY
+/* qsort(3), currently used to sort the environment variables
+for -bP environment output, needs a function to compare two pointers to string
+pointers. Here it is. */
+
+int
+string_compare_by_pointer(const uschar **a, const uschar **b)
+{
+return Ustrcmp(CUS *a, CUS *b);
+}
+#endif /* COMPILE_UTILITY */