Fix bad 'is in list' test in stream socket processing
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Wed, 23 May 2018 13:01:30 +0000 (15:01 +0200)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Wed, 23 May 2018 13:01:30 +0000 (15:01 +0200)
src/base/oonf_stream_socket.c

index b2e09e7..716c1f2 100644 (file)
@@ -536,7 +536,7 @@ _apply_managed_socket(
     return -1;
   }
 
-  if (list_is_node_added(&stream->scheduler_entry._node)) {
+  if (list_is_node_added(&stream->_node)) {
     if (memcmp(&sock, &stream->local_socket, sizeof(sock)) == 0) {
       /* nothing changed, just copy configuration */
       memcpy(&stream->config, &managed->config, sizeof(stream->config));