From d045409b9f3af271262198a7634faa32a0c06065 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 23 Apr 2012 09:15:29 +0000 Subject: [PATCH] Adding sentinel code for debug --- applications/jpip/libopenjpip/dec_clientmsg_handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/jpip/libopenjpip/dec_clientmsg_handler.c b/applications/jpip/libopenjpip/dec_clientmsg_handler.c index a45d8d13..20bd4f2b 100644 --- a/applications/jpip/libopenjpip/dec_clientmsg_handler.c +++ b/applications/jpip/libopenjpip/dec_clientmsg_handler.c @@ -60,6 +60,7 @@ void handle_JPIPstreamMSG( SOCKET connected_socket, cachelist_param_t *cachelist metadatalist = gene_metadatalist(); parse_metamsg( msgqueue, *jpipstream, *streamlen, metadatalist); + assert( msgqueue->last ); assert( msgqueue->last->csn < INT_MAX ); /* cid registration*/ if( target != NULL){