Fixed recvfrom address in ipv4 nist tests

Previous behaviours overwrote server address on failures
pull/2529/head
Christopher Haster 2016-08-23 14:47:43 -05:00
parent 22acfbf077
commit 1826978e8c
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ int main() {
int ret_send = sock.sendto(nist, (void*)ntp_send_values, sizeof(ntp_send_values));
printf("UDP: Sent %d Bytes to NTP server \n", ret_send);
const int n = sock.recvfrom(&nist, (void*)ntp_recv_values, sizeof(ntp_recv_values));
const int n = sock.recvfrom(NULL, (void*)ntp_recv_values, sizeof(ntp_recv_values));
printf("UDP: Recved from NTP server %d Bytes \n", n);