[master] 4d648b8 Missed one freebsd->varnish change: [v]be64enc()

Poul-Henning Kamp phk at FreeBSD.org
Sat May 6 00:56:05 CEST 2017


commit 4d648b8bfdaf795ee6497d2b29c06cda43cf981a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri May 5 22:54:34 2017 +0000

    Missed one freebsd->varnish change:  [v]be64enc()

diff --git a/lib/libvarnish/vsha256.c b/lib/libvarnish/vsha256.c
index c668474..5b898a9 100644
--- a/lib/libvarnish/vsha256.c
+++ b/lib/libvarnish/vsha256.c
@@ -232,7 +232,7 @@ SHA256_Pad(SHA256_CTX * ctx)
 	}
 
 	/* Add the terminating bit-count. */
-	be64enc(&ctx->buf[56], ctx->count);
+	vbe64enc(&ctx->buf[56], ctx->count);
 
 	/* Mix in the final block. */
 	SHA256_Transform(ctx->state, ctx->buf);



More information about the varnish-commit mailing list