syscall_net: add a FIXME
authorAlan Cox <alan@linux.intel.com>
Sun, 28 Aug 2016 15:59:23 +0000 (16:59 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 28 Aug 2016 15:59:23 +0000 (16:59 +0100)
Kernel/syscall_net.c

index c4a4a8f..58c7a93 100644 (file)
@@ -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;