aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-09-22 19:40:02 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-09-22 19:40:02 +0000
commit20108d7950b18454feff829de5f7f9c6fcaefd26 (patch)
tree582620b3b75522faaa467f62f62ebd3b9fae79de /file.c
parent9175c79ac1dbde4692b0992f36eb0b3f7cf2f227 (diff)
Get rid of struct addrinfo, use the hastables for name resolution instead.
svn path=/trunk/; revision=52176
Diffstat (limited to 'file.c')
-rw-r--r--file.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/file.c b/file.c
index 6be751a506..353f88662d 100644
--- a/file.c
+++ b/file.c
@@ -4467,7 +4467,7 @@ cf_save_packets(capture_file *cf, const char *fname, guint save_format,
gchar *fname_new = NULL;
wtap_dumper *pdh;
frame_data *fdata;
- struct addrinfo *addrs;
+ addrinfo_lists_t *addr_lists;
guint framenum;
int err;
#ifdef _WIN32
@@ -4482,12 +4482,11 @@ cf_save_packets(capture_file *cf, const char *fname, guint save_format,
cf_callback_invoke(cf_cb_file_save_started, (gpointer)fname);
- addrs = get_addrinfo_list();
+ addr_lists = get_addrinfo_list();
if (save_format == cf->cd_t && compressed == cf->iscompressed
&& !discard_comments && !cf->unsaved_changes
- && !(addrs && addrs->ai_next &&
- wtap_dump_has_name_resolution(save_format))) {
+ && !(addr_lists && wtap_dump_has_name_resolution(save_format))) {
/* We're saving in the format it's already in, and we're
not discarding comments, and there are no changes we have
in memory that aren't saved to the file, and we have no name
@@ -4601,7 +4600,7 @@ cf_save_packets(capture_file *cf, const char *fname, guint save_format,
}
/* Add address resolution */
- wtap_dump_set_addrinfo_list(pdh, addrs);
+ wtap_dump_set_addrinfo_list(pdh, addr_lists);
/* Iterate through the list of packets, processing all the packets. */
callback_args.pdh = pdh;