--- a/libfaim/aim_rxqueue.c Fri Dec 01 22:55:18 2000 +0000 +++ b/libfaim/aim_rxqueue.c Fri Dec 01 23:01:36 2000 +0000 @@ -57,6 +57,9 @@ if (!sess || !conn) return 0; + if (conn->fd == -1) + return -1; /* its a aim_conn_close()'d connection */ + if (conn->fd < 3) /* can happen when people abuse the interface */ return 0;