diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-10 09:43:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-10 09:43:16 +0000 |
commit | 61524c58020d03b22e750e8bf7a1871acbfdb8c0 (patch) | |
tree | 8761969b2a8fef51432c6b2f5a796a99acffddc1 /src/test/test_dnstap.c | |
parent | Releasing debian version 0.2.0-2. (diff) | |
download | dnswire-61524c58020d03b22e750e8bf7a1871acbfdb8c0.tar.xz dnswire-61524c58020d03b22e750e8bf7a1871acbfdb8c0.zip |
Merging upstream version 0.3.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/test_dnstap.c')
-rw-r--r-- | src/test/test_dnstap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_dnstap.c b/src/test/test_dnstap.c index fd199f8..eec0049 100644 --- a/src/test/test_dnstap.c +++ b/src/test/test_dnstap.c @@ -27,7 +27,7 @@ int main(void) d.dnstap.type = (enum _Dnstap__Dnstap__Type)DNSTAP_TYPE_MESSAGE; // invalid message.type - d.message.type = (enum _Dnstap__Message__Type)(DNSTAP_MESSAGE_TYPE_TOOL_RESPONSE + 1); + d.message.type = (enum _Dnstap__Message__Type)(DNSTAP_MESSAGE_TYPE_UPDATE_RESPONSE + 1); s = dnstap_encode_protobuf_size(&d); assert(s < sizeof(buf)); assert(dnstap_encode_protobuf(&d, buf) == s); @@ -47,7 +47,7 @@ int main(void) d.message.socket_family = (enum _Dnstap__SocketFamily)DNSTAP_SOCKET_FAMILY_INET; // invalid message.socket_protocol - d.message.socket_protocol = (enum _Dnstap__SocketProtocol)(DNSTAP_SOCKET_PROTOCOL_TCP + 1); + d.message.socket_protocol = (enum _Dnstap__SocketProtocol)(DNSTAP_SOCKET_PROTOCOL_DNSCryptTCP + 1); s = dnstap_encode_protobuf_size(&d); assert(s < sizeof(buf)); assert(dnstap_encode_protobuf(&d, buf) == s); |