diff --git a/src/anchor.c b/src/anchor.c index 498ab7ca..ab48cb6a 100644 --- a/src/anchor.c +++ b/src/anchor.c @@ -850,7 +850,7 @@ static inline const char * rt_str(uint16_t rt) static int tas_busy(tas_connection *a) { - return a->req != NULL; + return a && a->req != NULL; } static int tas_fetching(tas_connection *a) @@ -982,6 +982,7 @@ static void tas_doc_read(getdns_context *context, tas_connection *a) (int)a->tcp.read_buf_len, (char *)a->tcp.read_buf); assert(a->tcp.read_pos == a->tcp.read_buf + a->tcp.read_buf_len); + assert(context); if (a->state == TAS_READ_XML_DOC) { if (a->xml.data) diff --git a/src/test/tpkg/310-dependencies.tpkg/310-dependencies.test b/src/test/tpkg/310-dependencies.tpkg/310-dependencies.test index 985c420d..ef88d699 100644 --- a/src/test/tpkg/310-dependencies.tpkg/310-dependencies.test +++ b/src/test/tpkg/310-dependencies.tpkg/310-dependencies.test @@ -15,6 +15,11 @@ find . -type f -name "Makefile.in" -print0 | xargs -0 rm -f && ( ) ( cd "${BUILDDIR}/build-event-loops" + if test "`hostname`" != "bonobo" + then + echo Sorry, running dependency test on bonobo only + exit 0 + fi if ! ./config.status --config | grep -q 'enable-all-drafts.*--with-libevent.*--with-libev.*--with-libuv' then echo Skipping because not covering enough code