mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
common: Check parameters more rigorously.
* g10/parse-packet.c (dbg_copy_all_packets): Check that OUT is not NULL. (copy_all_packets): Likewise. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>.
This commit is contained in:
parent
48e792cc95
commit
0143d5c1ca
@ -336,6 +336,10 @@ dbg_copy_all_packets (IOBUF inp, IOBUF out, const char *dbg_f, int dbg_l)
|
|||||||
{
|
{
|
||||||
PACKET pkt;
|
PACKET pkt;
|
||||||
int skip, rc = 0;
|
int skip, rc = 0;
|
||||||
|
|
||||||
|
if (! out)
|
||||||
|
log_bug ("copy_all_packets: OUT may not be NULL.\n");
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
init_packet (&pkt);
|
init_packet (&pkt);
|
||||||
@ -351,6 +355,10 @@ copy_all_packets (IOBUF inp, IOBUF out)
|
|||||||
{
|
{
|
||||||
PACKET pkt;
|
PACKET pkt;
|
||||||
int skip, rc = 0;
|
int skip, rc = 0;
|
||||||
|
|
||||||
|
if (! out)
|
||||||
|
log_bug ("copy_all_packets: OUT may not be NULL.\n");
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
init_packet (&pkt);
|
init_packet (&pkt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user