VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / net / sctp / inqueue.c
index 9bb4de3..2e83405 100644 (file)
@@ -78,7 +78,7 @@ void sctp_inq_free(struct sctp_inq *queue)
        struct sctp_chunk *chunk;
 
        /* Empty the queue.  */
-       while ((chunk = (struct sctp_chunk *) skb_dequeue(&queue->in)))
+       while ((chunk = (struct sctp_chunk *) skb_dequeue(&queue->in)) != NULL)
                sctp_chunk_free(chunk);
 
        /* If there is a packet which is currently being worked on,