Merge pull request #530 from Shchelk/bugfix

Fix: dereferencing a null pointer
This commit is contained in:
gthess 2021-12-01 04:02:03 +01:00 committed by GitHub
commit 7adeba3690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -917,8 +917,9 @@ dns64_adjust_ptr(struct module_qstate* qstate, struct module_qstate* super)
sizeof(struct dns_msg))))
return;
super->return_msg->qinfo = super->qinfo;
super->return_msg->rep = reply_info_copy(qstate->return_msg->rep, NULL,
super->region);
if (!(super->return_msg->rep = reply_info_copy(qstate->return_msg->rep,
NULL, super->region)))
return;
/*
* Adjust the domain name of the answer RR set so that it matches the