We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 732be2e commit aa7d611Copy full SHA for aa7d611
1 file changed
message.c
@@ -1156,13 +1156,20 @@ flushbuf(struct buffered *buf, struct interface *ifp)
1156
(struct sockaddr*)&buf->sin6,
1157
sizeof(buf->sin6));
1158
if(rc < 0) {
1159
+ static int edestaddrreq_seen;
1160
+ if (errno == EDESTADDRREQ) {
1161
+ if (edestaddrreq_seen)
1162
+ goto skip_send_error;
1163
+ edestaddrreq_seen = 1;
1164
+ }
1165
1166
char addr[INET6_ADDRSTRLEN+1];
1167
uint32_t scope = buf->sin6.sin6_scope_id;
1168
inet_ntop(AF_INET6, &buf->sin6.sin6_addr, addr, sizeof(addr));
1169
fprintf(stderr, "send(%s%%%" PRIu32 "): %s\n",
1170
addr, scope, strerror(errno));
1171
}
1172
+ skip_send_error:
1173
1174
VALGRIND_MAKE_MEM_UNDEFINED(buf->buf, buf->size);
1175
buf->len = 0;
0 commit comments