--- a/src/viced/afsfileprocs.c
+++ b/src/viced/afsfileprocs.c
@@ -5892,6 +5892,11 @@ SRXAFS_GetStatistics64(struct rx_call *acall, afs_int32 statsVersion, ViceStatis
     if ((code = CallPreamble(acall, NOTACTIVECALL, &tcon, &thost)))
 	goto Bad_GetStatistics64;
 
+    if (statsVersion != STATS64_VERSION) {
+	code = EINVAL;
+	goto Bad_GetStatistics64;
+    }
+
     ViceLog(1, ("SAFS_GetStatistics64 Received\n"));
     Statistics->ViceStatistics64_val =
 	malloc(statsVersion*sizeof(afs_int64));
