Fixed segfault in libwebsocket_context_destroy.
authorPaulo Roberto Urio <paulourio@gmail.com>
Mon, 4 Jun 2012 00:40:28 +0000 (08:40 +0800)
committerAndy Green <andy.green@linaro.org>
Mon, 4 Jun 2012 00:40:28 +0000 (08:40 +0800)
commit1f680abb7da6994ed7073d52fca2dadc103e5fe4
treef8428c55da519cf72236e25b12061985d0528d94
parentd1db83c6508e2a856156e2500def5392a9a6d788
Fixed segfault in libwebsocket_context_destroy.

When creating a context with NULL extensions list,
a segmentation fault was yelled when trying to
destroy the context.  This checks if the
extension list is NULL before go through the list.
Signed-off-by: Paulo Roberto Urio <paulourio@gmail.com>
lib/libwebsockets.c