aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CREDITS1
-rw-r--r--savefile.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/CREDITS b/CREDITS
index fe78ffee..723a5a65 100644
--- a/CREDITS
+++ b/CREDITS
@@ -74,6 +74,7 @@ Additional people who have contributed patches:
Marcus Felipe Pereira <marcus at task dot com dot br>
Mark C. Brown <mbrown at hp dot com>
Mark Pizzolato <List-tcpdump-workers at subscriptions dot pizzolato dot net>
+ Markus Mayer <markus_mayer at sourceforge dot net>
Martin Husemann <martin at netbsd dot org>
Matthew Luckie <mjl at luckie dot org dot nz>
Max Laier <max at love2party dot net>
diff --git a/savefile.c b/savefile.c
index e69a84a0..ccb26a45 100644
--- a/savefile.c
+++ b/savefile.c
@@ -1748,7 +1748,7 @@ pcap_dump_open(pcap_t *p, const char *fname)
if (linktype == -1) {
snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
"%s: link-layer type %d isn't supported in savefiles",
- fname, linktype);
+ fname, p->linktype);
return (NULL);
}
linktype |= p->linktype_ext;
@@ -1783,7 +1783,7 @@ pcap_dump_fopen(pcap_t *p, FILE *f)
if (linktype == -1) {
snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
"stream: link-layer type %d isn't supported in savefiles",
- linktype);
+ p->linktype);
return (NULL);
}
linktype |= p->linktype_ext;