udns 0.3 has a bug in new list code

Marcin Mirosław marcin at mejor.pl
Thu Jan 23 16:12:32 MSK 2014


W dniu 23.01.2014 10:27, Michael Tokarev pisze:
> This is just a heads-up.  The following patch fixes it:
>
> commit 9da71a0720ae43a6b28155ba17770722785e9fee
> Author: Michael Tokarev <mjt at tls.msk.ru>
> Date:   Thu Jan 23 12:59:08 2014 +0400
>
>      fix a bug in list impl
>
> diff --git a/udns_resolver.c b/udns_resolver.c
> index 00ba99d..b8f899a 100644
> --- a/udns_resolver.c
> +++ b/udns_resolver.c
> @@ -106,9 +106,9 @@ static __inline void qlist_remove(struct dns_qlist *list, st
>   static __inline void
>   qlist_add_head(struct dns_qlist *list, struct dns_query *q) {
>     q->dnsq_next = list->head;
> -  list->head = q;
>     if (list->head) list->head->dnsq_prev = q;
>     else list->tail = q;
> +  list->head = q;
>     q->dnsq_prev = NULL;
>   }
>
>
> I'll release a new version hopefully today.


Hi!
This solves problem with jabberd2 (throws coredump after upgrading udns 
to 0.3)
Thanks,
Marcin


More information about the udns mailing list