Changeset 423
- Timestamp:
- 07/26/06 13:27:19
- Files:
-
- openpgpsdk/trunk/include/openpgpsdk/errors.h (modified) (1 diff)
- openpgpsdk/trunk/src/packet-parse.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/include/openpgpsdk/errors.h
r422 r423 32 32 OPS_E_P_PACKET_CONSUMED =OPS_E_P+3, 33 33 OPS_E_P_MPI_FORMAT_ERROR =OPS_E_P+4, 34 OPS_E_P_PACKET_NOT_CONSUMED =OPS_E_P+5, 34 35 35 36 /* creator errors */ openpgpsdk/trunk/src/packet-parse.c
r412 r423 1874 1874 WARNP(pinfo,"Problem consuming remainder of error packet."); 1875 1875 else 1876 return 0; 1876 { 1877 ERRCODEP(pinfo,OPS_E_P_PACKET_NOT_CONSUMED); 1878 return 0; 1879 } 1877 1880 1878 1881 return 1; … … 2470 2473 2471 2474 if(region.length != region.length_read && !region.indeterminate) 2472 if(!consume_packet(®ion,pinfo,ops_ true))2475 if(!consume_packet(®ion,pinfo,ops_false)) 2473 2476 r=-1; 2474 2477 … … 2477 2480 *pktlen=pinfo->rinfo.alength; 2478 2481 2479 /* do callback on entire packet, if desired */2480 2481 if( pinfo->rinfo.accumulate)2482 /* do callback on entire packet, if desired and there was no error */ 2483 2484 if(r > 0 && pinfo->rinfo.accumulate) 2482 2485 { 2483 2486 C.packet.length=pinfo->rinfo.alength;
