Skip to content

Commit 1826978

Browse files
committed
Fixed recvfrom address in ipv4 nist tests
Previous behaviours overwrote server address on failures
1 parent 22acfbf commit 1826978

File tree

1 file changed

+1
-1
lines changed
  • features/net/FEATURE_IPV4/TESTS/mbedmicro-net/nist_internet_time_service

1 file changed

+1
-1
lines changed

features/net/FEATURE_IPV4/TESTS/mbedmicro-net/nist_internet_time_service/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int main() {
4242
int ret_send = sock.sendto(nist, (void*)ntp_send_values, sizeof(ntp_send_values));
4343
printf("UDP: Sent %d Bytes to NTP server \n", ret_send);
4444

45-
const int n = sock.recvfrom(&nist, (void*)ntp_recv_values, sizeof(ntp_recv_values));
45+
const int n = sock.recvfrom(NULL, (void*)ntp_recv_values, sizeof(ntp_recv_values));
4646

4747
printf("UDP: Recved from NTP server %d Bytes \n", n);
4848

0 commit comments

Comments
 (0)