prevent CNAME/PTR parsing from reading data past the response end
[musl] / src / stdio / __stdio_close.c
index 9f7ee18..3029132 100644 (file)
@@ -1,6 +1,14 @@
 #include "stdio_impl.h"
+#include "aio_impl.h"
+
+static int dummy(int fd)
+{
+       return fd;
+}
+
+weak_alias(dummy, __aio_close);
 
 int __stdio_close(FILE *f)
 {
-       return syscall(SYS_close, f->fd);
+       return syscall(SYS_close, __aio_close(f->fd));
 }