From: Andy Green Date: Wed, 25 May 2011 19:46:18 +0000 (+0100) Subject: extensions ensure per conn allocation starts zeroed X-Git-Tag: 1.2~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6652412f3afc2d85c7550979c0d909aade57738;p=profile%2Fivi%2Flibwebsockets.git extensions ensure per conn allocation starts zeroed Signed-off-by: Andy Green --- diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index 7de11da..0a448d9 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -1248,6 +1248,9 @@ select_protocol: wsi->active_extensions_user[ wsi->count_active_extensions] = malloc(ext->per_session_data_size); + memset(wsi->active_extensions_user[ + wsi->count_active_extensions], 0, + ext->per_session_data_size); wsi->active_extensions[ wsi->count_active_extensions] = ext;