aboutsummaryrefslogtreecommitdiff
path: root/nbd/client-connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'nbd/client-connection.c')
-rw-r--r--nbd/client-connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nbd/client-connection.c b/nbd/client-connection.c
index e5b1046a1c..3d14296c04 100644
--- a/nbd/client-connection.c
+++ b/nbd/client-connection.c
@@ -156,7 +156,7 @@ static int nbd_connect(QIOChannelSocket *sioc, SocketAddress *addr,
* channel.
*/
if (outioc && *outioc) {
- qio_channel_close(QIO_CHANNEL(*outioc), NULL);
+ qio_channel_close(*outioc, NULL);
object_unref(OBJECT(*outioc));
*outioc = NULL;
} else {