Prevent COMSTACK use if cs_accept fails
[yaz-moved-to-github.git] / src / seshigh.c
index b2dcd41..2a3ff0e 100644 (file)
@@ -398,6 +398,7 @@ void ir_session(IOCHAN h, int event)
             yaz_log(YLOG_WARN, "accept failed");
             destroy_association(assoc);
             iochan_destroy(h);
+            return;
         }
         iochan_clearflag(h, EVENT_OUTPUT);
         if (conn->io_pending)