diff --git a/src/kex.c b/src/kex.c index 09a6dd1..1eb08ab 100644 --- a/src/kex.c +++ b/src/kex.c @@ -1067,10 +1067,7 @@ static int kexinit(LIBSSH2_SESSION * session) *(s++) = 0; /* Reserved == 0 */ - *(s++) = 0; - *(s++) = 0; - *(s++) = 0; - *(s++) = 0; + _libssh2_htonu32(s, 0); #ifdef LIBSSH2DEBUG {