Blame SOURCES/unbound-1.13.1-rh1977401.patch

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