1
1

Avoid a false positive in bcheck

This commit was SVN r8643.
Этот коммит содержится в:
Jeff Squyres 2006-01-04 22:29:09 +00:00
родитель c3cc1d5bbc
Коммит a6b869ed68

Просмотреть файл

@ -463,7 +463,12 @@ static void mca_oob_tcp_recv_handler(int sd, short flags, void* user)
}
OBJ_RELEASE(event);
/* Some mem checkers don't realize that hdr will guarantee to be
fully filled in during the read(), below :-( */
OMPI_DEBUG_ZERO(hdr);
/* recv the process identifier */
hdr.msg_src.cellid = 78;
while((rc = recv(sd, (char *)&hdr, sizeof(hdr), 0)) != sizeof(hdr)) {
if(rc >= 0) {
if(mca_oob_tcp_component.tcp_debug > 1) {
@ -480,6 +485,10 @@ static void mca_oob_tcp_recv_handler(int sd, short flags, void* user)
return;
}
}
assert(rc == sizeof(hdr));
if (rc != sizeof(hdr)) {
abort();
}
MCA_OOB_TCP_HDR_NTOH(&hdr);
/* dispatch based on message type */