aboutgitcodebugslistschat
path: root/udp_flow.c
diff options
context:
space:
mode:
Diffstat (limited to 'udp_flow.c')
-rw-r--r--udp_flow.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/udp_flow.c b/udp_flow.c
index 35417bc..6edfa65 100644
--- a/udp_flow.c
+++ b/udp_flow.c
@@ -88,13 +88,12 @@ static int udp_flow_sock(const struct ctx *c,
return rc;
}
- if (flowside_connect(c, s, pif, side) < 0) {
- rc = -errno;
-
+ if ((rc = flowside_connect(c, s, pif, side)) < 0) {
epoll_del(flow_epollfd(&uflow->f), s);
close(s);
- flow_dbg_perror(uflow, "Couldn't connect flow socket");
+ flow_dbg(uflow, "Couldn't connect flow socket: %s",
+ strerror_(-rc));
return rc;
}
uflow->s[sidei] = s;