"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/types.c" between
adns-1.5.0.tar.gz and adns-1.5.1.tar.gz

About: adns is an advanced, easy to use, asynchronous-capable DNS client library for C (and C++) programs and a collection of DNS resolver utilities.

types.c  (adns-1.5.0):types.c  (adns-1.5.1)
/* /*
* types.c * types.c
* - RR-type-specific code, and the machinery to call it * - RR-type-specific code, and the machinery to call it
*/ */
/* /*
* This file is part of adns, which is * This file is part of adns, which is
* Copyright (C) 1997-2000,2003,2006,2014 Ian Jackson * Copyright (C) 1997-2000,2003,2006,2014-2016 Ian Jackson
* Copyright (C) 2014 Mark Wooding * Copyright (C) 2014 Mark Wooding
* Copyright (C) 1999-2000,2003,2006 Tony Finch * Copyright (C) 1999-2000,2003,2006 Tony Finch
* Copyright (C) 1991 Massachusetts Institute of Technology * Copyright (C) 1991 Massachusetts Institute of Technology
* (See the file INSTALL for full details.) * (See the file INSTALL for full details.)
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option) * the Free Software Foundation; either version 3, or (at your option)
* any later version. * any later version.
* *
skipping to change at line 895 skipping to change at line 895
if (!rrp->naddrs) { st= adns_s_nodata; goto done; } if (!rrp->naddrs) { st= adns_s_nodata; goto done; }
if (!adns__vbuf_ensure(&parent->vb, addrsz)) if (!adns__vbuf_ensure(&parent->vb, addrsz))
{ st= adns_s_nomemory; goto done; } { st= adns_s_nomemory; goto done; }
adns__isort(rrp->addrs, rrp->naddrs, addrsz, parent->vb.buf, adns__isort(rrp->addrs, rrp->naddrs, addrsz, parent->vb.buf,
div_addr, ads); div_addr, ads);
done: done:
if (st) { if (st) {
adns__free_interim(parent, rrp->addrs); adns__free_interim(parent, rrp->addrs);
rrp->addrs = 0;
rrp->naddrs= (st>0 && st<=adns_s_max_tempfail) ? -1 : 0; rrp->naddrs= (st>0 && st<=adns_s_max_tempfail) ? -1 : 0;
} }
rrp->astatus= st; rrp->astatus= st;
if (parent->children.head) { if (parent->children.head) {
LIST_LINK_TAIL(ads->childw,parent); LIST_LINK_TAIL(ads->childw,parent);
} else { } else {
adns__query_done(parent); adns__query_done(parent);
} }
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS