mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-31 11:41:32 +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;
|
||||
int skip, rc = 0;
|
||||
|
||||
if (! out)
|
||||
log_bug ("copy_all_packets: OUT may not be NULL.\n");
|
||||
|
||||
do
|
||||
{
|
||||
init_packet (&pkt);
|
||||
@ -351,6 +355,10 @@ copy_all_packets (IOBUF inp, IOBUF out)
|
||||
{
|
||||
PACKET pkt;
|
||||
int skip, rc = 0;
|
||||
|
||||
if (! out)
|
||||
log_bug ("copy_all_packets: OUT may not be NULL.\n");
|
||||
|
||||
do
|
||||
{
|
||||
init_packet (&pkt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user