FreeBSD Port: asterisk11-11.5.1
Brian Scott
bscott at bunyatech.com.au
Sat Sep 7 08:42:01 UTC 2013
Hi,
I just submitted this fix to digium (well, filed a bug report that
described the fix).
I don't know how fast they are with these things, particularly since its
a bit FreeBSD specific (uninitialised memory on malloc) so I thought I'd
drop you a copy as well.
Regards,
Brian Scott
-------------- next part --------------
--- include/asterisk/linkedlists.h 2012-11-28 04:47:32.000000000 +1100
+++ include/asterisk/linkedlists.h 2013-09-07 18:08:36.000000000 +1000
@@ -731,9 +731,11 @@
if (!(head)->first) { \
(head)->first = (elm); \
(head)->last = (elm); \
+ (elm)->field.next = NULL; \
} else { \
(head)->last->field.next = (elm); \
(head)->last = (elm); \
+ (elm)->field.next = NULL; \
} \
} while (0)
More information about the freebsd-ports
mailing list