rx: rxi_FindRpcStat must test for empty queue
[openafs.git] / src / rx / rx.c
index 81dff70..0f30eb6 100644 (file)
@@ -8110,6 +8110,10 @@ rxi_FindRpcStat(struct rx_queue *stats, afs_uint32 rxInterface,
                unsigned int *counter, int create)
 {
     rx_interface_stat_p rpc_stat, nrpc_stat;
+
+    if (queue_IsEmpty(stats) && !create)
+        return NULL;
+
     /*
      * See if there's already a structure for this interface
      */