]> jfr.im git - solanum.git/blobdiff - src/send.c
Add no_locops extension to disable LOCOPS (force everyone -l).
[solanum.git] / src / send.c
index bd4adea8e457449c5efccd490a294a6e57ac5c74..732efb053cfc00e439535049b42f93ca747f0d8b 100644 (file)
@@ -168,6 +168,10 @@ send_queued_write(int fd, void *data)
 #ifdef USE_IODEBUG_HOOKS
        hook_data_int hd;
 #endif
+       fde_t *F = comm_locate_fd(to->localClient->fd);
+       if (!F)
+               return;
+
        /* cant write anything to a dead socket. */
        if(IsIOError(to))
                return;
@@ -182,7 +186,7 @@ send_queued_write(int fd, void *data)
        if(linebuf_len(&to->localClient->buf_sendq))
        {
                while ((retlen =
-                       linebuf_flush(to->localClient->fd, &to->localClient->buf_sendq)) > 0)
+                       linebuf_flush(F, &to->localClient->buf_sendq)) > 0)
                {
                        /* We have some data written .. update counters */
 #ifdef USE_IODEBUG_HOOKS