[lvm-devel] LVM2/daemons/common daemon-client.c
mornfall at sourceware.org
mornfall at sourceware.org
Fri Feb 24 00:02:54 UTC 2012
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2012-02-24 00:02:54
Modified files:
daemons/common : daemon-client.c
Log message:
Fix an error path in daemon_open.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/common/daemon-client.c.diff?cvsroot=lvm2&r1=1.13&r2=1.14
--- LVM2/daemons/common/daemon-client.c 2012/02/23 23:52:11 1.13
+++ LVM2/daemons/common/daemon-client.c 2012/02/24 00:02:54 1.14
@@ -10,6 +10,7 @@
daemon_handle daemon_open(daemon_info i) {
daemon_handle h = { .protocol_version = 0 };
+ daemon_reply r = { .cft = NULL };
struct sockaddr_un sockaddr;
if ((h.socket_fd = socket(PF_UNIX, SOCK_STREAM /* | SOCK_NONBLOCK */, 0)) < 0) {
@@ -25,7 +26,7 @@
goto error;
}
- daemon_reply r = daemon_send_simple(h, "hello", NULL);
+ r = daemon_send_simple(h, "hello", NULL);
if (r.error || strcmp(daemon_reply_str(r, "response", "unknown"), "OK"))
goto error;
More information about the lvm-devel
mailing list