diff options
author | Werner Koch <[email protected]> | 2006-10-02 11:54:35 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-10-02 11:54:35 +0000 |
commit | 4b48bcacc9a242365e85ca788c4c966d8aeb1c10 (patch) | |
tree | 21e803ec571bbe4d9288e014a16ccafe0ac45056 /g10/parse-packet.c | |
parent | 2006-10-02 Marcus Brinkmann <[email protected]> (diff) | |
download | gnupg-4b48bcacc9a242365e85ca788c4c966d8aeb1c10.tar.gz gnupg-4b48bcacc9a242365e85ca788c4c966d8aeb1c10.zip |
Fix for bug 537
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 33472da4d..691f6696c 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -2355,6 +2355,9 @@ parse_encrypted( IOBUF inp, int pkttype, unsigned long pktlen, } +/* Note, that this code is not anymore used in real life because now + the MDC checking is done right after the encryption in + decrypt_data. */ static int parse_mdc( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *pkt, int new_ctb ) @@ -2363,7 +2366,7 @@ parse_mdc( IOBUF inp, int pkttype, unsigned long pktlen, PKT_mdc *mdc; byte *p; - mdc = pkt->pkt.mdc= xmalloc(sizeof *pkt->pkt.mdc ); + mdc = pkt->pkt.mdc = xmalloc(sizeof *pkt->pkt.mdc ); if( list_mode ) fprintf (listfp, ":mdc packet: length=%lu\n", pktlen); if( !new_ctb || pktlen != 20 ) { |