]> git.proxmox.com Git - mirror_qemu.git/blobdiff - io/channel-tls.c
linux-user: Add "safe" parameter to do_guest_openat()
[mirror_qemu.git] / io / channel-tls.c
index 5a7a3d48d6f79fb4d160859eac555c99e8e102a4..9805dd0a3f64d5a33234bc1ffea4efa6bd7cb6fc 100644 (file)
@@ -74,6 +74,9 @@ qio_channel_tls_new_server(QIOChannel *master,
     ioc = QIO_CHANNEL_TLS(object_new(TYPE_QIO_CHANNEL_TLS));
 
     ioc->master = master;
+    if (qio_channel_has_feature(master, QIO_CHANNEL_FEATURE_SHUTDOWN)) {
+        qio_channel_set_feature(QIO_CHANNEL(ioc), QIO_CHANNEL_FEATURE_SHUTDOWN);
+    }
     object_ref(OBJECT(master));
 
     ioc->session = qcrypto_tls_session_new(