From 7fa18c5a4c8b6468ad795db3ecdf4a0b0b8ecfae Mon Sep 17 00:00:00 2001
From: Mark Grondona <mgrondona@llnl.gov>
Date: Wed, 22 Oct 2003 03:53:38 +0000
Subject: [PATCH]  o do not assert io header size, just return an error if size
 is    not correct.

---
 src/common/io_hdr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/common/io_hdr.c b/src/common/io_hdr.c
index c855c28e992..f6d8cc25661 100644
--- a/src/common/io_hdr.c
+++ b/src/common/io_hdr.c
@@ -68,7 +68,8 @@ io_hdr_unpack(io_hdr_t *hdr, Buf buffer)
 
 	safe_unpackmem(hdr->key, &val, buffer);
 
-	xassert(val == SLURM_IO_KEY_SIZE);
+	if (val != SLURM_IO_KEY_SIZE)
+		goto unpack_error;
 
 	safe_unpack32(&hdr->taskid, buffer);
 	safe_unpack16(&hdr->type, buffer);
-- 
GitLab