rxi-flushwrite-fake-a-better-empty-packet-20040923
authorNickolai Zeldovich <kolya@mit.edu>
Fri, 24 Sep 2004 02:42:28 +0000 (02:42 +0000)
committerNickolai Zeldovich <kolya@mit.edu>
Fri, 24 Sep 2004 02:42:28 +0000 (02:42 +0000)
Fake a better empty packet in rxi_FlushWrite(), with enough space for
an rxkad header.  Otherwise rxi_PrepareSendPacket may panic.

src/rx/rx_rdwr.c

index 9402f11..f31548b 100644 (file)
@@ -1301,7 +1301,7 @@ rxi_FlushWrite(register struct rx_call *call)
                return;
            }
            cp->length = 0;
-           cp->niovecs = 1;    /* just the header */
+           cp->niovecs = 2;    /* header + space for rxkad stuff */
            call->nFree = 0;
        }