aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/server/tftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index 0fe18a2c7..773751970 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -515,8 +515,8 @@ int main(int argc, char **argv)
do {
fromlen = sizeof(from);
- n = (ssize_t)sreadfrom(sock, buf, sizeof(buf), 0,
- (struct sockaddr *)&from, &fromlen);
+ n = (ssize_t)recvfrom(sock, buf, sizeof(buf), 0,
+ (struct sockaddr *)&from, &fromlen);
if (n < 0) {
logmsg("recvfrom:\n");
result = 3;