File bsc974691.patch of Package libssh2_org

---
 src/mac.c |    3 +++
 1 file changed, 3 insertions(+)

Index: libssh2-1.4.3/src/mac.c
===================================================================
--- libssh2-1.4.3.orig/src/mac.c
+++ libssh2-1.4.3/src/mac.c
@@ -204,6 +204,7 @@ mac_method_hmac_sha1_hash(LIBSSH2_SESSIO
 
     _libssh2_htonu32(seqno_buf, seqno);
 
+    libssh2_hmac_ctx_init(ctx);
     libssh2_hmac_sha1_init(&ctx, *abstract, 20);
     libssh2_hmac_update(ctx, seqno_buf, 4);
     libssh2_hmac_update(ctx, packet, packet_len);
@@ -276,6 +277,7 @@ mac_method_hmac_md5_hash(LIBSSH2_SESSION
 
     _libssh2_htonu32(seqno_buf, seqno);
 
+    libssh2_hmac_ctx_init(ctx);
     libssh2_hmac_md5_init(&ctx, *abstract, 16);
     libssh2_hmac_update(ctx, seqno_buf, 4);
     libssh2_hmac_update(ctx, packet, packet_len);
@@ -348,6 +350,7 @@ mac_method_hmac_ripemd160_hash(LIBSSH2_S
 
     _libssh2_htonu32(seqno_buf, seqno);
 
+    libssh2_hmac_ctx_init(ctx);
     libssh2_hmac_ripemd160_init(&ctx, *abstract, 20);
     libssh2_hmac_update(ctx, seqno_buf, 4);
     libssh2_hmac_update(ctx, packet, packet_len);