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

--- 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)
 
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to