aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/libpcap.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-06-18 16:22:54 -0700
committerGuy Harris <gharris@sonic.net>2021-06-18 16:22:54 -0700
commit02cffb51a9fc048defac1085cb71d5567ae3f4fc (patch)
tree8a047011cf8a804363bf785cfcca023554dab9c3 /wiretap/libpcap.c
parentd69d1271f08fb4e919447dbfb8a36c2cdfe3e48b (diff)
erf: handle errors in some routines more completely.
Have them take error code and error information string arguments and, for various failures, fill them in as "internal error" indications. Check their return codes to see if they got an error.
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r--wiretap/libpcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index a5518ccf08..204ffc0c2b 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -910,7 +910,7 @@ libpcap_read_packet(wtap *wth, FILE_T fh, wtap_rec *rec,
int interface_id;
/* Set interface ID for ERF format */
rec->presence_flags |= WTAP_HAS_INTERFACE_ID;
- if ((interface_id = erf_populate_interface_from_header((erf_t*) libpcap->encap_priv, wth, &rec->rec_header.packet_header.pseudo_header)) < 0)
+ if ((interface_id = erf_populate_interface_from_header((erf_t*) libpcap->encap_priv, wth, &rec->rec_header.packet_header.pseudo_header, err, err_info)) < 0)
return FALSE;
rec->rec_header.packet_header.interface_id = (guint) interface_id;