# HG changeset patch # User rbultje # Date 1262905519 0 # Node ID e15a959963f13f267f4da281d0792b03f1e6f63f # Parent 4ec7bcff8719301fd91a082434c85d81af920657 handler can be NULL if we did not support this dynamic format (codec). Fixes issue 1658 (the crasher), although the format itself is obviously still unsupported. diff -r 4ec7bcff8719 -r e15a959963f1 rdt.c --- a/rdt.c Thu Jan 07 22:44:03 2010 +0000 +++ b/rdt.c Thu Jan 07 23:05:19 2010 +0000 @@ -67,7 +67,7 @@ s->prev_set_id = -1; s->prev_stream_id = -1; s->prev_timestamp = -1; - s->parse_packet = handler->parse_packet; + s->parse_packet = handler ? handler->parse_packet : NULL; s->dynamic_protocol_context = priv_data; return s;