Track tainted data and refuse to expand it
[exim.git] / src / src / lookups / dnsdb.c
index 70203fa6d89b13d5414b4b147019ef7c1a52b536..5654b5615f418502b85eec5f12f93619e366b958 100644 (file)
@@ -549,7 +549,7 @@ while ((domain = string_nextinlist(&keystring, &sep, NULL, 0)))
 
 /* Reclaim unused memory */
 
-store_reset(yield->s + yield->ptr + 1);
+gstring_release_unused(yield);
 
 /* If yield NULL we have not found anything. Otherwise, insert the terminating
 zero and return the result. */