From f61d78fb42d2662643e7f0dbdcb97adbc2589dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Wed, 14 May 2014 18:43:20 +0000 Subject: import unbound 1.4.21 --- testcode/streamtcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testcode/streamtcp.c') diff --git a/testcode/streamtcp.c b/testcode/streamtcp.c index dbdf1408c1d5..06a18e4cfafb 100644 --- a/testcode/streamtcp.c +++ b/testcode/streamtcp.c @@ -121,9 +121,9 @@ write_q(int fd, int udp, SSL* ssl, ldns_buffer* buf, uint16_t id, exit(1); } qinfo.qname = memdup(ldns_rdf_data(rdf), ldns_rdf_size(rdf)); + if(!qinfo.qname) fatal_exit("out of memory"); (void)dname_count_size_labels(qinfo.qname, &qinfo.qname_len); ldns_rdf_deep_free(rdf); - if(!qinfo.qname) fatal_exit("out of memory"); /* qtype and qclass */ qinfo.qtype = ldns_get_rr_type_by_name(strtype); -- cgit v1.2.3