mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix unbound dnstap socket test program analyzer warnings about
unused variable assignments and variable initialization.
This commit is contained in:
parent
3a1b79f6a1
commit
5bb3b9cc83
2 changed files with 7 additions and 3 deletions
|
|
@ -1151,7 +1151,9 @@ void dtio_mainfdcallback(int fd, short ATTR_UNUSED(bits), void* arg)
|
||||||
char* id = NULL;
|
char* id = NULL;
|
||||||
struct sockaddr_storage addr;
|
struct sockaddr_storage addr;
|
||||||
socklen_t addrlen = (socklen_t)sizeof(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) {
|
if(s == -1) {
|
||||||
#ifndef USE_WINSOCK
|
#ifndef USE_WINSOCK
|
||||||
/* EINTR is signal interrupt. others are closed connection. */
|
/* EINTR is signal interrupt. others are closed connection. */
|
||||||
|
|
@ -1543,8 +1545,8 @@ int main(int argc, char** argv)
|
||||||
usage(argv);
|
usage(argv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
argc -= optind;
|
/* argc -= optind; not using further arguments */
|
||||||
argv += optind;
|
/* argv += optind; not using further arguments */
|
||||||
|
|
||||||
if(usessl) {
|
if(usessl) {
|
||||||
#ifdef HAVE_SSL
|
#ifdef HAVE_SSL
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
30 September 2024: Wouter
|
30 September 2024: Wouter
|
||||||
- Fix negative cache NSEC3 parameter compares for zero length NSEC3
|
- Fix negative cache NSEC3 parameter compares for zero length NSEC3
|
||||||
salt.
|
salt.
|
||||||
|
- Fix unbound dnstap socket test program analyzer warnings about
|
||||||
|
unused variable assignments and variable initialization.
|
||||||
|
|
||||||
25 September 2024: Wouter
|
25 September 2024: Wouter
|
||||||
- Fix #1144: [FR] log timestamps in ISO8601 format with timezone.
|
- Fix #1144: [FR] log timestamps in ISO8601 format with timezone.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue