Cluster: sanity checks on the cluster bus message length.

This commit is contained in:
antirez
2013-02-15 16:44:39 +01:00
parent 6b9c661838
commit 02796ba7a7
2 changed files with 25 additions and 8 deletions

View File

@ -637,6 +637,8 @@ typedef struct {
union clusterMsgData data;
} clusterMsg;
#define CLUSTERMSG_MIN_LEN (sizeof(clusterMsg)-sizeof(union clusterMsgData))
/*-----------------------------------------------------------------------------
* Global server state
*----------------------------------------------------------------------------*/