summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson2022-10-13 21:18:00 +0000
committerDaniel Gustafsson2022-10-13 21:18:00 +0000
commitba185d318dd34ed3e860b3a19869fbc15007db8f (patch)
tree4119b8a4f5bf4ba6cba2eae97df15e6469c45ee4
parent2589434ae0fbfe08e46b6a4ffba400140b636074 (diff)
Remove redundant memset call following palloc0
This is a follow-up commit to ca7f8e2 which removed the allocation abstraction from pgcrypto and replaced px_alloc + memset calls with palloc0 calls. The particular memset in this commit was missed in that work though. Author: Zhihong Yu <[email protected]> Reviewed-by: Bruce Momjian <[email protected]> Reviewed-by: Nathan Bossart <[email protected]> Discussion: https://postgr.es/m/CALNJ-vT5qRucrFMPSzQyAWods1b4MnNPG-M=_ZUzh1SoTh0vNw@mail.gmail.com
-rw-r--r--contrib/pgcrypto/px.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/contrib/pgcrypto/px.c b/contrib/pgcrypto/px.c
index 3b098c61514..d35ccca7774 100644
--- a/contrib/pgcrypto/px.c
+++ b/contrib/pgcrypto/px.c
@@ -203,7 +203,6 @@ combo_init(PX_Combo *cx, const uint8 *key, unsigned klen,
if (klen > ks)
klen = ks;
keybuf = palloc0(ks);
- memset(keybuf, 0, ks);
memcpy(keybuf, key, klen);
err = px_cipher_init(c, keybuf, klen, ivbuf);