Changeset View
Changeset View
Standalone View
Standalone View
g10/import.c
Context not available. | |||||
switch (pkt->pkttype) | switch (pkt->pkttype) | ||||
{ | { | ||||
case PKT_COMPRESSED: | case PKT_COMPRESSED: | ||||
if (check_compress_algo (pkt->pkt.compressed->algorithm)) | rc = GPG_ERR_UNEXPECTED; | ||||
{ | goto ready; | ||||
rc = GPG_ERR_COMPR_ALGO; | |||||
goto ready; | |||||
} | |||||
else | |||||
{ | |||||
compress_filter_context_t *cfx = xmalloc_clear( sizeof *cfx ); | |||||
pkt->pkt.compressed->buf = NULL; | |||||
if (push_compress_filter2 (a, cfx, | |||||
pkt->pkt.compressed->algorithm, 1)) | |||||
xfree (cfx); /* e.g. in case of compression_algo NONE. */ | |||||
} | |||||
free_packet (pkt, &parsectx); | |||||
init_packet(pkt); | |||||
break; | |||||
case PKT_RING_TRUST: | case PKT_RING_TRUST: | ||||
/* Skip those packets unless we are in restore mode. */ | /* Skip those packets unless we are in restore mode. */ | ||||
Context not available. |