1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

clvmd: fix the len setting in last commit

When theoretically sending 0 length buffer, ensure 0 is returned.
This commit is contained in:
Zdenek Kabelac 2014-03-10 12:35:44 +01:00
parent 5dc9402774
commit 6c892be4a5

View File

@ -2002,7 +2002,7 @@ static void send_version_message(void)
static int send_message(void *buf, int msglen, const char *csid, int fd,
const char *errtext)
{
int len;
int len = 0;
int ptr;
struct timespec delay;
struct timespec remtime;