Skip to content

Commit c885844

Browse files
rluboscfriedt
authored andcommitted
tests: net: socket: getaddrinfo: Align with dns_unpack_query() change
Not sure why didn't this cause the test to fail, but just for completeness, align this test suite with dns_unpack_query() change as well. Signed-off-by: Robert Lubos <[email protected]>
1 parent fda8247 commit c885844

File tree

1 file changed

+1
-1
lines changed
  • tests/net/socket/getaddrinfo/src

1 file changed

+1
-1
lines changed

tests/net/socket/getaddrinfo/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static bool check_dns_query(uint8_t *buf, int buf_len)
9696
/* In this test we are just checking if the query came to us in correct
9797
* form, we are not creating a DNS server implementation here.
9898
*/
99-
if (strncmp(result->data + 1, QUERY_HOST,
99+
if (strncmp(result->data, QUERY_HOST,
100100
sizeof(QUERY_HOST) - 1)) {
101101
net_buf_unref(result);
102102
return false;

0 commit comments

Comments
 (0)