"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "epan/dissectors/packet-protobuf.c" between
wireshark-3.4.5.tar.xz and wireshark-3.4.6.tar.xz

About: Wireshark is a network protocol analyzer. It lets you capture and interactively browse the traffic running on a computer network.

packet-protobuf.c  (wireshark-3.4.5.tar.xz):packet-protobuf.c  (wireshark-3.4.6.tar.xz)
skipping to change at line 1144 skipping to change at line 1144
if (g_file_test(dir_path, G_FILE_TEST_IS_DIR)) { if (g_file_test(dir_path, G_FILE_TEST_IS_DIR)) {
if ((dir = ws_dir_open(dir_path, 0, NULL)) != NULL) { if ((dir = ws_dir_open(dir_path, 0, NULL)) != NULL) {
while ((file = ws_dir_read_name(dir)) != NULL) { while ((file = ws_dir_read_name(dir)) != NULL) {
/* load all files with '.proto' suffix */ /* load all files with '.proto' suffix */
name = ws_dir_get_name(file); name = ws_dir_get_name(file);
path = g_build_filename(dir_path, name, NULL); path = g_build_filename(dir_path, name, NULL);
dot = strrchr(name, '.'); dot = strrchr(name, '.');
if (dot && g_ascii_strcasecmp(dot + 1, "proto") == 0) { if (dot && g_ascii_strcasecmp(dot + 1, "proto") == 0) {
/* Note: pbw_load_proto_file support absolute or relative (t o one of search paths) path */ /* Note: pbw_load_proto_file support absolute or relative (t o one of search paths) path */
if (pbw_load_proto_file(pool, path)) { if (pbw_load_proto_file(pool, path) != 0) {
g_free(path);
ws_dir_close(dir);
return FALSE; return FALSE;
} }
} else { } else {
if (!load_all_files_in_dir(pool, path)) { if (!load_all_files_in_dir(pool, path)) {
g_free(path);
ws_dir_close(dir);
return FALSE; return FALSE;
} }
} }
g_free(path); g_free(path);
} }
ws_dir_close(dir); ws_dir_close(dir);
} }
} }
return TRUE; return TRUE;
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)