[Spice-commits] server/red-stream.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jan 15 16:08:05 UTC 2019
server/red-stream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9b04c9961e0a20f8af72e0bf58d2334e90e9d554
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Mon Jan 14 11:54:12 2019 +0100
sasl: Simplify red_stream_write_u32_le call with '0' serveroutlen
Instead of
if (serveroutlen) {
...
} else {
red_stream_write_u32_le(stream, serveroutlen);
}
use 'red_stream_write_u32_le(stream, 0);' in the else block as it's
slightly more obvious.
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/red-stream.c b/server/red-stream.c
index fd5b8cd1..311387c2 100644
--- a/server/red-stream.c
+++ b/server/red-stream.c
@@ -903,7 +903,7 @@ static void red_sasl_handle_auth_step(void *opaque)
red_stream_write_u32_le(stream, serveroutlen);
red_stream_write_all(stream, serverout, serveroutlen);
} else {
- red_stream_write_u32_le(stream, serveroutlen);
+ red_stream_write_u32_le(stream, 0);
}
/* Whether auth is complete */
More information about the Spice-commits
mailing list