Remove ioset engine update call that could read after free().
authorMichael Poole <mdpoole@troilus.org>
Fri, 27 Oct 2006 01:25:18 +0000 (01:25 +0000)
committerMichael Poole <mdpoole@troilus.org>
Fri, 27 Oct 2006 01:25:18 +0000 (01:25 +0000)
src/ioset.c (ioset_connect): If the connect fails immediately, do not try
    to update the fd after closing it.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-68

ChangeLog
src/ioset.c

index b79a549b3818b352dbe6b6238346809cf7c5e0a9..6901ec058da069c1155539c488f5ea6458c4c041 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,20 @@
 # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
 #
 
+2006-10-27 01:25:18 GMT        Michael Poole <mdpoole@troilus.org>     patch-68
+
+    Summary:
+      Remove ioset engine update call that could read after free().
+    Revision:
+      srvx--devo--1.3--patch-68
+
+    src/ioset.c (ioset_connect): If the connect fails immediately, do not try
+        to update the fd after closing it.
+
+    modified files:
+     ChangeLog src/ioset.c
+
+
 2006-10-27 01:06:02 GMT        Michael Poole <mdpoole@troilus.org>     patch-67
 
     Summary:
index 444579e9c46d7fb84d58eb75a65f047096a3f1f6..a199275f1d3fa2c87196a53dc006421de5623902 100644 (file)
@@ -259,7 +259,6 @@ ioset_connect(struct sockaddr *local, unsigned int sa_size, const char *peer, un
         case EHOSTUNREACH:
         case ECONNREFUSED:
             ioset_close(io_fd, 1);
-            engine->update(io_fd);
             return NULL;
         }
     }