diff -Naur wireshark-1.2.14/tshark.c wireshark-1.2.14.free/tshark.c
--- wireshark-1.2.14/tshark.c	2011-01-12 00:37:47.000000000 +0530
+++ wireshark-1.2.14.free/tshark.c	2011-02-04 14:19:44.152192444 +0530
@@ -2185,7 +2185,7 @@
   int          snapshot_length;
   wtap_dumper *pdh;
   int          err;
-  gchar        *err_info;
+  gchar        *err_info = NULL;
   gint64       data_offset;
   char         *save_file_string = NULL;
 
@@ -2279,7 +2279,6 @@
       cmdarg_err("\"%s\" has a packet with a network type that TShark doesn't support.\n(%s)",
                  cf->filename, err_info);
       g_free(err_info);
-      break;
 
     case WTAP_ERR_CANT_READ:
       cmdarg_err("An attempt to read from \"%s\" failed for some unknown reason.",
diff -Naur wireshark-1.2.14/wiretap/pcapng.c wireshark-1.2.14.free/wiretap/pcapng.c
--- wireshark-1.2.14/wiretap/pcapng.c	2011-01-12 00:37:44.000000000 +0530
+++ wireshark-1.2.14.free/wiretap/pcapng.c	2011-02-04 09:53:44.281068282 +0530
@@ -787,12 +787,14 @@
 		pcapng_debug2("pcapng_read_packet_block:cap_len %d is larger than packet_len %u.",
 		              wblock->data.packet.cap_len, wblock->data.packet.packet_len);
 		*err = WTAP_ERR_BAD_RECORD;
+                *err_info = strdup("pcapng_read_packet_block:cap_len is larger than packet_len");
 		return 0;
 	}
 	if (wblock->data.packet.cap_len > WTAP_MAX_PACKET_SIZE) {
 		pcapng_debug2("pcapng_read_packet_block:cap_len %d is larger than WTAP_MAX_PACKET_SIZE %u.",
 		              wblock->data.packet.cap_len, WTAP_MAX_PACKET_SIZE);
 		*err = WTAP_ERR_BAD_RECORD;
+                *err_info = strdup("pcapng_read_packet_block:cap_len is larger than packet_len");
 		return 0;
 	}
 	pcapng_debug3("pcapng_read_packet_block: packet data: packet_len %u captured_len %u interface_id %u",
@@ -955,6 +957,7 @@
 		pcapng_debug2("pcapng_read_simple_packet_block:cap_len %d is larger than WTAP_MAX_PACKET_SIZE %u.",
 		              wblock->data.simple_packet.cap_len, WTAP_MAX_PACKET_SIZE);
 		*err = WTAP_ERR_BAD_RECORD;
+                *err_info = strdup("pcapng_read_packet_block:cap_len is larger than WTAP_MAX_PACKET_SIZE");
 		return 0;
 	}
 	pcapng_debug1("pcapng_read_simple_packet_block: packet data: packet_len %u",
