diff options
Diffstat (limited to 'contrib/pgcrypto/pgp-mpi.c')
-rw-r--r-- | contrib/pgcrypto/pgp-mpi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/pgcrypto/pgp-mpi.c b/contrib/pgcrypto/pgp-mpi.c index c8765b6d14..1da52acc9a 100644 --- a/contrib/pgcrypto/pgp-mpi.c +++ b/contrib/pgcrypto/pgp-mpi.c @@ -17,7 +17,7 @@ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) @@ -31,7 +31,6 @@ #include "postgres.h" #include "px.h" -#include "mbuf.h" #include "pgp.h" int @@ -72,7 +71,7 @@ pgp_mpi_free(PGP_MPI *mpi) { if (mpi == NULL) return 0; - memset(mpi, 0, sizeof(*mpi) + mpi->bytes); + px_memset(mpi, 0, sizeof(*mpi) + mpi->bytes); px_free(mpi); return 0; } |