Correct number of bytes to allocated for slaves in bundle action.
authorMehak Mahajan <mmahajan@nicira.com>
Wed, 15 Aug 2012 18:19:35 +0000 (11:19 -0700)
committerMehak Mahajan <mmahajan@nicira.com>
Wed, 15 Aug 2012 18:19:35 +0000 (11:19 -0700)
commit21f045ac7eb2ecdd3bab919c9fc9ebb7dde84dd7
tree56a9796f027db5afe42482e48617bf5328fb64cc
parenta359d5ad700c7175c75134cce3cee8d87d19d67c
Correct number of bytes to allocated for slaves in bundle action.

The size of each slave is a uint16_t.  This means that each slave needs 2 bytes
at the end of nx_action_bundle.  Earlier, the size of each slave was not being
factored in when allocating space.  This commit corrects that by allocating 2
bytes for each slave when calculating the total number of bytes to be allocated
at the end of nx_action_bundle.

Signed-off-by: Mehak Mahajan <mmahajan@nicira.com>
lib/bundle.c