fix out-of-bounds reads in __dns_parse
[musl] / src / network / sendto.c
index 1cfc621..c598797 100644 (file)
@@ -1,12 +1,7 @@
 #include <sys/socket.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t sendto(int fd, const void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t alen)
 {
-       ssize_t r;
-       CANCELPT_BEGIN;
-       r = socketcall(sendto, fd, buf, len, flags, addr, alen);
-       CANCELPT_END;
-       return r;
+       return socketcall_cp(sendto, fd, buf, len, flags, addr, alen);
 }