Need to check the size of the response header here.

(Logical change 1.59)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@202 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Mark Haverkamp 2004-08-23 22:27:07 +00:00
parent 22cfdcf95c
commit ecdfa6f923

View File

@ -182,7 +182,7 @@ saRecvQueue (
if (error != SA_OK) {
goto error_exit;
}
if (message.header.size > sizeof (struct req_header)) {
if (message.header.size > sizeof (struct res_header)) {
error = saRecvRetry (s, &message.payload,
message.header.size - sizeof (struct res_header),
MSG_WAITALL | MSG_NOSIGNAL);