mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Small cleanups for pgcrypto. Marko Kreen
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-decrypt.c,v 1.3 2005/07/18 16:35:06 tgl Exp $
|
||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-decrypt.c,v 1.4 2005/07/18 17:09:01 tgl Exp $
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
@ -339,7 +339,6 @@ static void mdc_free(void *priv)
|
||||
ctx->mdc_ctx = NULL;
|
||||
}
|
||||
|
||||
/* fixme: clarify */
|
||||
static int mdc_finish(PGP_Context *ctx, PullFilter *src,
|
||||
int len, uint8 **data_p)
|
||||
{
|
||||
@ -364,6 +363,7 @@ static int mdc_finish(PGP_Context *ctx, PullFilter *src,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* safety check */
|
||||
if (ctx->in_mdc_pkt > 1)
|
||||
{
|
||||
px_debug("mdc_finish: several times here?");
|
||||
@ -371,6 +371,7 @@ static int mdc_finish(PGP_Context *ctx, PullFilter *src,
|
||||
}
|
||||
ctx->in_mdc_pkt++;
|
||||
|
||||
/* is the packet sane? */
|
||||
if (res != 20)
|
||||
{
|
||||
px_debug("mdc_finish: read failed, res=%d", res);
|
||||
|
Reference in New Issue
Block a user