From e7c2b1a09df0f24ed0bf7616e73a704691b237f8 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 28 Aug 2016 16:59:23 +0100 Subject: [PATCH] syscall_net: add a FIXME --- Kernel/syscall_net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/syscall_net.c b/Kernel/syscall_net.c index c4a4a8fa..58c7a933 100644 --- a/Kernel/syscall_net.c +++ b/Kernel/syscall_net.c @@ -573,6 +573,8 @@ arg_t _sendto(void) /* Save the address and then just do a 'write' */ if (s->s_type != SOCKTYPE_TCP) { /* Use the address in atmp */ + /* FIXME: if this is allowable we either need to do this + differently or we need to block sendto + connect */ s->s_flag |= SFLAG_ATMP; if (sa_getremote(&uaddr->sio_addr, &sin) == -1) return -1; -- 2.34.1