Browse Source

allocate gsalt large enough; from Matthew R. Dempsky <mrd at alkemio

dot org>; ok djm@ deraadt@
OPENBSD_4_0
otto 18 years ago
parent
commit
8c5ca2a673
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libc/crypt/bcrypt.c

+ 2
- 2
src/lib/libc/crypt/bcrypt.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: bcrypt.c,v 1.20 2006/04/03 19:55:49 deraadt Exp $ */
/* $OpenBSD: bcrypt.c,v 1.21 2006/07/04 19:06:00 otto Exp $ */
/*
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@ -73,7 +73,7 @@ static void encode_base64(u_int8_t *, u_int8_t *, u_int16_t);
static void decode_base64(u_int8_t *, u_int16_t, u_int8_t *);
static char encrypted[_PASSWORD_LEN];
static char gsalt[BCRYPT_MAXSALT * 4 / 3 + 1];
static char gsalt[7 + (BCRYPT_MAXSALT * 4 + 2) / 3 + 1];
static char error[] = ":";
const static u_int8_t Base64Code[] =


Loading…
Cancel
Save