]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/lookups/dnsdb.c
preallocate store for config
[user/henk/code/exim.git] / src / src / lookups / dnsdb.c
index aea2eba72080ae4817d7d8ee2465fbb9493c8297..5654b5615f418502b85eec5f12f93619e366b958 100644 (file)
@@ -332,7 +332,7 @@ while ((domain = string_nextinlist(&keystring, &sep, NULL, 0)))
 
   do
     {
-    DEBUG(D_lookup) debug_printf("dnsdb key: %s\n", domain);
+    DEBUG(D_lookup) debug_printf_indent("dnsdb key: %s\n", domain);
 
     /* Do the lookup and sort out the result. There are four special types that
     are handled specially: T_CSA, T_ZNS, T_ADDRESSES and T_MXH.
@@ -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. */