[Spice-devel] [PATCH spice-server] red-stream: Reuse red_stream_disable_writev function
Frediano Ziglio
fziglio at redhat.com
Tue Jan 9 19:43:25 UTC 2018
The same function is used to reset writev field in SASL code.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/red-stream.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/server/red-stream.c b/server/red-stream.c
index 5b2c084e9..44627b65f 100644
--- a/server/red-stream.c
+++ b/server/red-stream.c
@@ -427,12 +427,10 @@ bool red_stream_is_ssl(RedStream *stream)
return (stream->priv->ssl != NULL);
}
-#if HAVE_SASL
static void red_stream_disable_writev(RedStream *stream)
{
stream->priv->writev = NULL;
}
-#endif
RedStreamSslStatus red_stream_ssl_accept(RedStream *stream)
{
@@ -483,7 +481,7 @@ int red_stream_enable_ssl(RedStream *stream, SSL_CTX *ctx)
stream->priv->write = stream_ssl_write_cb;
stream->priv->read = stream_ssl_read_cb;
- stream->priv->writev = NULL;
+ red_stream_disable_writev(stream);
return red_stream_ssl_accept(stream);
}
--
2.14.3
More information about the Spice-devel
mailing list