From f620fa076e23562ed1d435e0a6d20a2ba857f9de Mon Sep 17 00:00:00 2001 From: mikeb Date: Fri, 5 Jan 2018 19:05:09 +0000 Subject: [PATCH] Sync with the code in libc OK millert; original commit message by tedu@: memcpy from the right place. at this point, the used variable is not relevant. from Mark Karpilovskij. ok millert --- sys/crypto/siphash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/crypto/siphash.c b/sys/crypto/siphash.c index 1b3df7e3f1d..33bb7b46325 100644 --- a/sys/crypto/siphash.c +++ b/sys/crypto/siphash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siphash.c,v 1.4 2017/04/12 18:35:50 florian Exp $ */ +/* $OpenBSD: siphash.c,v 1.5 2018/01/05 19:05:09 mikeb Exp $ */ /*- * Copyright (c) 2013 Andre Oppermann @@ -102,7 +102,7 @@ SipHash_Update(SIPHASH_CTX *ctx, int rc, int rf, const void *src, size_t len) } if (len > 0) - memcpy(&ctx->buf[used], ptr, len); + memcpy(ctx->buf, ptr, len); } void -- 2.20.1