LVM2/daemons/common daemon-client.c
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.
daemons/common/daemon-client.c +2 -1
@@ -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;