diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-15 14:13:19 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-20 07:11:58 +0100 |
commit | f87ede57a2e97f0743a85b94072c7163fa485ae9 (patch) | |
tree | 827af0350535dde1db7f1ae5d80226eb3a62533d /cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | |
parent | libnetworking: Delete dead code (diff) | |
download | rtems-f87ede57a2e97f0743a85b94072c7163fa485ae9.tar.bz2 |
libnetworking: Fix close of active sockets
Send a special event to notify tasks waiting for a socket state change
in case this socket gets closed. This prevents a use after free.
Close #785.
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_bsdnet_internal.h')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h index 5be781b4c8..b790f0561d 100644 --- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h +++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h @@ -219,7 +219,7 @@ int ioctl (int, ioctl_command_t, ...); #define NETISR_IP_EVENT (1L << NETISR_IP) #define NETISR_ARP_EVENT (1L << NETISR_ARP) #define NETISR_EVENTS (NETISR_IP_EVENT|NETISR_ARP_EVENT) -#if (SBWAIT_EVENT & SOSLEEP_EVENT & NETISR_EVENTS) +#if (SBWAIT_EVENT & SOSLEEP_EVENT & NETISR_EVENTS & RTEMS_EVENT_SYSTEM_NETWORK_CLOSE) # error "Network event conflict" #endif |