]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Update to the recent versions.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 19 Jul 2014 16:42:05 +0000 (09:42 -0700)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 19 Jul 2014 16:42:05 +0000 (09:42 -0700)
contrib/uthash/utstring.h
src/rdns
src/ucl

index 4ef7b5690dc66c699361119e01dd615dedc2749a..f11f34b77e755a9ea2b5d71ae0d382533a08c0f3 100644 (file)
@@ -44,6 +44,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 typedef struct {
     char *d;
+    void **pd;
     size_t n; /* allocd size */
     size_t i; /* index of first unused byte */
 } UT_string;
@@ -54,6 +55,7 @@ do {                                                       \
      (s)->d = (char*)realloc((s)->d, (s)->n + amt);        \
      if ((s)->d == NULL) oom();                            \
      (s)->n += amt;                                        \
+     if ((s)->pd) *((s)->pd) = (s)->d;                     \
   }                                                        \
 } while(0)
 
@@ -78,7 +80,7 @@ do {                                                       \
 
 #define utstring_new(s)                                    \
 do {                                                       \
-   s = (UT_string*)calloc(sizeof(UT_string),1);            \
+   s = (UT_string*)calloc(1, sizeof(UT_string));          \
    if (!s) oom();                                          \
    utstring_init(s);                                       \
 } while(0)
index a7f457e2548cfb8f5c6199aa0ed2e9486171710f..44e4c9ba12d2504379443e7f7a7f94ad088a28e3 160000 (submodule)
--- a/src/rdns
+++ b/src/rdns
@@ -1 +1 @@
-Subproject commit a7f457e2548cfb8f5c6199aa0ed2e9486171710f
+Subproject commit 44e4c9ba12d2504379443e7f7a7f94ad088a28e3
diff --git a/src/ucl b/src/ucl
index d84b73bb28b0bd762c3a5cd3183e6ba5e86b4a19..e3e15c4802bb8bf764ff4936e345f28676dad120 160000 (submodule)
--- a/src/ucl
+++ b/src/ucl
@@ -1 +1 @@
-Subproject commit d84b73bb28b0bd762c3a5cd3183e6ba5e86b4a19
+Subproject commit e3e15c4802bb8bf764ff4936e345f28676dad120