You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
864 B

  1. From 023411f97505c8c7e375112ad853b6a40ef848a6 Mon Sep 17 00:00:00 2001
  2. From: Wouter Wijngaards <wouter@nlnetlabs.nl>
  3. Date: Wed, 12 Dec 2018 16:03:05 +0000
  4. Subject: [PATCH] - Fix for crash in dns64 module if response is null.
  5. git-svn-id: file:///svn/unbound/trunk@5025 be551aaa-1e26-0410-a405-d3ace91eadb9
  6. ---
  7. dns64/dns64.c | 1 +
  8. doc/Changelog | 3 +++
  9. 2 files changed, 4 insertions(+)
  10. diff --git a/dns64/dns64.c b/dns64/dns64.c
  11. index 77e68900..f2834da2 100644
  12. --- a/dns64/dns64.c
  13. +++ b/dns64/dns64.c
  14. @@ -628,6 +628,7 @@ handle_event_moddone(struct module_qstate* qstate, int id)
  15. /* Store the response in cache. */
  16. if ( (!iq || !iq->started_no_cache_store) &&
  17. + qstate->return_msg && qstate->return_msg->rep &&
  18. !dns_cache_store(qstate->env, &qstate->qinfo, qstate->return_msg->rep,
  19. 0, 0, 0, NULL, qstate->query_flags))
  20. log_err("out of memory");