diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-12 14:33:43 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-12 14:33:43 +0200 |
commit | dfb45a7ac75d17c3a8421bfb53840d6db271a121 (patch) | |
tree | 3d9882f7c077d7ff431a1379f89f2115640ce201 /xmalloc.c | |
parent | 44b463529a8a9f2ccd1ec2acb8a4dfc117a636cb (diff) |
ioops: misc: add dup{,2}_or_die to ioops
Bail out if it should ever fail. Detected by coverty in the
translate_pcap_to_txf() path.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'xmalloc.c')
-rw-r--r-- | xmalloc.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -141,11 +141,3 @@ char *xstrndup(const char *str, size_t size) return cp; } - -int xdup(int fd) -{ - int ret = dup(fd); - if (unlikely(ret < 0)) - panic("xdup: dup failed\n"); - return ret; -} |