LAST_MESSAGE
if (type <= 0 || type > LAST_MESSAGE)
if (type <= 0 || type >= LAST_MESSAGE || pd->fncp == NULL)
if (etype < 0 || etype > LAST_MESSAGE)
if (rtype > 0 && rtype <= LAST_MESSAGE)
if (type < 0 || type > LAST_MESSAGE)
if (LAST_MESSAGE < stoh(msgbuf + MESG_TYPE))
if ((type = stoh(msgbuf + HEAD_TYPE)) < 0 || LAST_MESSAGE < type)