Commit 62e67d25 authored by Marek Vavruša's avatar Marek Vavruša

remotes: port not cleared when 'via' interface copied

fixes #272
parent 5a9d102c
......@@ -139,6 +139,7 @@ static void conf_remote_set_via(void *scanner, char *item) {
cf_error(scanner, "interface '%s' is not defined", item);
} else {
memcpy(&this_remote->via, &found->addr, sizeof(struct sockaddr_storage));
sockaddr_port_set(&this_remote->via, 0);
}
}
......
......@@ -90,7 +90,7 @@ static int request_send(struct request *request, const struct timeval *timeout)
/* Wait for writeability or error. */
int ret = request_wait(request->data.fd, NS_PROC_FULL, &tv);
if (ret == 0) {
return KNOT_EAGAIN;
return KNOT_ETIMEOUT;
}
/* Check socket error. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment