ctdbd_conn: use the right error code from ctdbd_connect for debug and return
commit5c1ed7f18f81faa3619ac47f3e0a1f4e343c94ce
authorMichael Adam <obnox@samba.org>
Fri, 26 Jun 2015 11:17:01 +0000 (26 13:17 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 26 Jun 2015 15:21:26 +0000 (26 17:21 +0200)
treeaa1ef447ca6452bebffae4d53ca293d49b12c52d
parent3320a565fb114372240504826618a811980f5e97
ctdbd_conn: use the right error code from ctdbd_connect for debug and return

ctdbd_connect() explicitly returns the errno.
Using errno instead of ret misses some important
manually set return values and might use the
errno that is changed by close(fd).

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Jun 26 17:21:26 CEST 2015 on sn-devel-104
source3/lib/ctdbd_conn.c