diff options
author | Guy Harris <gharris@sonic.net> | 2023-06-24 23:35:45 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2023-06-24 23:35:45 -0700 |
commit | 8f1f6fcbe4b4c17d965b42374a2f170452a93289 (patch) | |
tree | 52c8f4835f8ff0ff4c854f5e3c5757020b04caf2 /gencode.c | |
parent | d130479e5b2c024a70e1f7446a228eb19243114e (diff) |
If we can't allocate a DLT_ list, fail.
Some code already was doing that (for example, pcap-bpf.c if fetching
the DLT list with an ioctl), and, if you can't allocate a DLT_ list,
which is usually pretty small, you may have other memory allocation
problems later, so letting the program open an interface (and not get a
correct list of all link-layer types supported) may not be worth it.
Diffstat (limited to 'gencode.c')
0 files changed, 0 insertions, 0 deletions