Blame SOURCES/unbound-1.13.1-rh1977401.patch

55b5be
diff --git a/dns64/dns64.c b/dns64/dns64.c
55b5be
index c79bc9c..fddbc62 100644
55b5be
--- a/dns64/dns64.c
55b5be
+++ b/dns64/dns64.c
55b5be
@@ -685,8 +685,12 @@ dns64_operate(struct module_qstate* qstate, enum module_ev event, int id,
55b5be
 	switch(event) {
55b5be
 		case module_event_new:
55b5be
 			/* Tag this query as being new and fall through. */
55b5be
-			iq = (struct dns64_qstate*)regional_alloc(
55b5be
-				qstate->region, sizeof(*iq));
55b5be
+			if (!(iq = (struct dns64_qstate*)regional_alloc(
55b5be
+							qstate->region, sizeof(*iq)))) {
55b5be
+				log_err("out of memory");
55b5be
+				qstate->ext_state[id] = module_error;
55b5be
+				return;
55b5be
+			}
55b5be
 			qstate->minfo[id] = iq;
55b5be
 			iq->state = DNS64_NEW_QUERY;
55b5be
 			iq->started_no_cache_store = qstate->no_cache_store;