Ignore:
Timestamp:
02/08/07 18:41:19 (15 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
c85b715
Parents:
8d347c2
Message:

if gzfdopen() fails, return NULL instead of succeeding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtraceio-zlib.c

    r4bd8a5b rec1e19c  
    3939                return NULL;
    4040        io->file = gzdopen(fd,mode);
     41        if (!io->file) {
     42                free(io);
     43                return NULL;
     44        }
    4145        return io;
    4246}
Note: See TracChangeset for help on using the changeset viewer.