Browse Source

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
Mark Haverkamp 21 years ago
parent
commit
ecdfa6f923
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/util.c

+ 1 - 1
lib/util.c

@@ -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);