X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ftorus.cpp;h=f3661f91154efbcc606136453c62a65eef00025e;hb=2e5efc21c03caec53122f872cbb95657dd3c823f;hp=e715614be4d829930396e0eebf707d6171e7cd59;hpb=b3acb59a189d35972417558297963d8db3bdcd35;p=metaproxy-moved-to-github.git diff --git a/src/torus.cpp b/src/torus.cpp index e715614..f3661f9 100644 --- a/src/torus.cpp +++ b/src/torus.cpp @@ -53,7 +53,8 @@ xmlDoc *mp::get_searchable(std::string url_template, const std::string &db, 0, /* content buf */ 0 /* content_len */ ); - if (http_response->code == 200 && http_response->content_buf) + if (http_response && http_response->code == 200 && + http_response->content_buf) doc = xmlParseMemory(http_response->content_buf, http_response->content_len); yaz_url_destroy(url_p);