Blob Blame History Raw
diff --git a/wiretap/packetlogger.c.old b/wiretap/packetlogger.c
index fcaedc9..83187ad 100644
--- a/wiretap/packetlogger.c.old
+++ b/wiretap/packetlogger.c
@@ -83,21 +83,6 @@ int packetlogger_open(wtap *wth, int *err, gchar **err_info)
 		return 0;
 	}
 
-	/*
-	 * If the upper 16 bits of the length are non-zero and the lower
-	 * 16 bits are zero, assume the file is little-endian.
-	 */
-	if ((pl_hdr.len & 0x0000FFFF) == 0 &&
-	    (pl_hdr.len & 0xFFFF0000) != 0) {
-		/*
-		 * Byte-swap the upper 16 bits (the lower 16 bits are
-		 * zero, so we don't have to look at them).
-		 */
-		pl_hdr.len = ((pl_hdr.len >> 24) & 0xFF) |
-			     (((pl_hdr.len >> 16) & 0xFF) << 8);
-		little_endian = TRUE;
-	}
-
 	/* Verify this file belongs to us */
 	if (!((8 <= pl_hdr.len) && (pl_hdr.len < 65536) &&
 	      (type < 0x04 || type == 0xFB || type == 0xFC || type == 0xFE || type == 0xFF)))