Fix SEGV in serval_packetvisualise()

This commit is contained in:
Andrew Bettison 2012-10-02 15:47:45 +09:30
parent 17ef2249e4
commit 4daaa8f164

View File

@ -285,7 +285,7 @@ int isOverlayPacket(XPRINTF xpf, const unsigned char *packet, size_t *ofs, size_
if (cantDecodeFrame) { if (cantDecodeFrame) {
xprintf(xpf,"%sWARNING: Cannot decode compressed and/or encrypted frame.\n",indent(8)); xprintf(xpf,"%sWARNING: Cannot decode compressed and/or encrypted frame.\n",indent(8));
_dump(xpf, frame, frame_len, 0, "%s", indent(10)); _dump(xpf, frame, next_frame_ofs - *ofs, 0, "%s", indent(10));
} }
else { else {
/* Decrypt and/or decompress frame */ /* Decrypt and/or decompress frame */