CID 700176: Dereference null return value (NULL_RETURNS)

Not sure whether this is really possible, but add a dissector_assert
just to be safe.

svn path=/trunk/; revision=52820
This commit is contained in:
Jörg Mayer 2013-10-24 20:35:53 +00:00
parent 5303e144a3
commit 1b69a6a94d
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@
#include "config.h"
#include <glib.h>
#include <epan/proto.h>
#include <epan/packet.h>
#include <epan/etypes.h>
#include <epan/ipproto.h>
@ -2279,6 +2280,7 @@ start_over:
}
/* Call IP for uncompressed*/
DISSECTOR_ASSERT(rohc_cid_context);
if (rohc_cid_context->profile==ROHC_PROFILE_UNCOMPRESSED) {
if (rohc_cid_context->large_cid_present) {
guint8 *payload_data;