regress_LDADD = ../libevent.la $(PTHREAD_LIBS) $(ZLIB_LIBS)
regress_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat \
-I$(top_srcdir)/include $(PTHREAD_CFLAGS) $(ZLIB_CFLAGS)
+regress_LDFLAGS = $(PTHREAD_CFLAGS)
bench_SOURCES = bench.c
bench_LDADD = ../libevent.la
bench_cascade_SOURCES = bench_cascade.c
static void
http_connection_retry_done(struct evhttp_request *req, void *arg)
{
+ if (req == NULL) {
+ fprintf(stderr, "FAILED (connection aborted)\n");
+ exit(1);
+ }
+
if (req->response_code == HTTP_OK) {
fprintf(stderr, "FAILED\n");
exit(1);