resize reply buffer for mutipathd help message
authorBenjamin Marzinski <bmarzins@redhat.com>
Fri, 15 May 2015 23:14:13 +0000 (18:14 -0500)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Tue, 6 Oct 2015 07:39:30 +0000 (09:39 +0200)
commitbd631e82577577474f641c54ac2a0e2a30dac7fa
treea261870c6cf49715b4113db0af6768d09d738d51
parent56be0b096631c8b2f0f9d169aa23ab648e7c273c
resize reply buffer for mutipathd help message

Unlike the other reply messages from multipathd, the generic help
message code couldn't resize the buffer, and the reply had grown too big
for the initial buffer size. This was causing memory corruption and
crashing multipathd instead of printing a help message. This patch
increases the size of the initial reply buffer, and makes the help
message code able to resize the buffer so this doesn't happen in the
future.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
multipathd/cli.c
multipathd/cli.h
multipathd/cli_handlers.c