1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

fixed silly allocation bug

This commit is contained in:
Werner Koch 2001-08-09 15:49:28 +00:00
parent a255ea76ae
commit 57c1dbc21d
3 changed files with 7 additions and 3 deletions

View file

@ -1139,7 +1139,7 @@ parse_signature( IOBUF inp, int pkttype, unsigned long pktlen,
goto leave;
}
if( n ) {
/* we add 6 extra bytes so that we have space for the signature
/* we add 8 extra bytes so that we have space for the signature
* status cache. Well we are wastin this if there is a cache
* packet already, but in the other case it avoids an realloc */
sig->unhashed = m_alloc (sizeof(*sig->unhashed) + n + 8 - 1 );