mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-03 20:29:28 -05:00
set repinfo correctly (this prints out debug and errors with the correct remote IP)
git-svn-id: file:///svn/unbound/trunk@4422 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
a7d55a5ad8
commit
3b393e0e2d
1 changed files with 3 additions and 2 deletions
|
|
@ -3351,6 +3351,8 @@ xfr_transfer_init_fetch(struct auth_xfer* xfr, struct module_env* env)
|
|||
log_err("malloc failure");
|
||||
return 0;
|
||||
}
|
||||
xfr->task_transfer->cp->repinfo.addrlen = addrlen;
|
||||
memcpy(&xfr->task_transfer->cp->repinfo.addr, &addr, addrlen);
|
||||
/* set timeout on TCP connection */
|
||||
comm_point_start_listening(xfr->task_transfer->cp, fd,
|
||||
AUTH_TRANSFER_TIMEOUT);
|
||||
|
|
@ -3492,13 +3494,12 @@ void auth_xfer_transfer_lookup_callback(void* arg, int rcode, sldns_buffer* buf,
|
|||
/** callback for task_transfer tcp connections */
|
||||
int
|
||||
auth_xfer_transfer_tcp_callback(struct comm_point* c, void* arg, int err,
|
||||
struct comm_reply* repinfo)
|
||||
struct comm_reply* ATTR_UNUSED(repinfo))
|
||||
{
|
||||
struct auth_xfer* xfr = (struct auth_xfer*)arg;
|
||||
struct module_env* env;
|
||||
log_assert(xfr->task_probe);
|
||||
env = xfr->task_probe->env;
|
||||
(void)repinfo;
|
||||
|
||||
if(err != NETEVENT_NOERROR) {
|
||||
/* connection failed, closed, or timeout */
|
||||
|
|
|
|||
Loading…
Reference in a new issue