Can remove the sender and/or the recipient from the key of the greylister.
[apps/pfixtools.git] / common / mem.h
index f7b9d80..9d98b87 100644 (file)
@@ -55,9 +55,9 @@
 
 #  define p_shrink(pp, goalnb, allocnb)           \
     do {                                          \
-        if (*(allocnb) > goalnb) {                \
-            p_realloc(pp, goalnb);                \
-            *(allocnb) = goalnb;                  \
+        if (*(allocnb) > (goalnb)) {              \
+            p_realloc(pp, (goalnb));              \
+            *(allocnb) = (goalnb);                \
         }                                         \
     } while(0)