aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound/dnstap/unbound-dnstap-socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound/dnstap/unbound-dnstap-socket.c')
-rw-r--r--contrib/unbound/dnstap/unbound-dnstap-socket.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/contrib/unbound/dnstap/unbound-dnstap-socket.c b/contrib/unbound/dnstap/unbound-dnstap-socket.c
index f203aa7d73a1..7f8be4965957 100644
--- a/contrib/unbound/dnstap/unbound-dnstap-socket.c
+++ b/contrib/unbound/dnstap/unbound-dnstap-socket.c
@@ -1151,7 +1151,9 @@ void dtio_mainfdcallback(int fd, short ATTR_UNUSED(bits), void* arg)
char* id = NULL;
struct sockaddr_storage addr;
socklen_t addrlen = (socklen_t)sizeof(addr);
- int s = accept(fd, (struct sockaddr*)&addr, &addrlen);
+ int s;
+ memset(&addr, 0, sizeof(addr));
+ s = accept(fd, (struct sockaddr*)&addr, &addrlen);
if(s == -1) {
#ifndef USE_WINSOCK
/* EINTR is signal interrupt. others are closed connection. */
@@ -1543,8 +1545,8 @@ int main(int argc, char** argv)
usage(argv);
}
}
- argc -= optind;
- argv += optind;
+ /* argc -= optind; not using further arguments */
+ /* argv += optind; not using further arguments */
if(usessl) {
#ifdef HAVE_SSL
@@ -1783,3 +1785,19 @@ void remote_get_opt_ssl(char* ATTR_UNUSED(str), void* ATTR_UNUSED(arg))
{
log_assert(0);
}
+
+#ifdef HAVE_NGTCP2
+void doq_client_event_cb(int ATTR_UNUSED(fd), short ATTR_UNUSED(ev),
+ void* ATTR_UNUSED(arg))
+{
+ log_assert(0);
+}
+#endif
+
+#ifdef HAVE_NGTCP2
+void doq_client_timer_cb(int ATTR_UNUSED(fd), short ATTR_UNUSED(ev),
+ void* ATTR_UNUSED(arg))
+{
+ log_assert(0);
+}
+#endif