This should not happen anywhere, but it clears the expectation of the
caller and simplifies the error handling there.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
struct ctdbd_connection *conn = NULL;
int ret;
+ *pconn = NULL;
+
ret = ctdbd_init_connection(mem_ctx, sockname, timeout, &conn);
if (ret != 0) {
return ret;
ret = set_blocking(conn->fd, false);
if (ret == -1) {
int err = errno;
+ SMB_ASSERT(err != 0);
TALLOC_FREE(conn);
return err;
}