Fix for bug 398680 . Memset extension sender structure. r=nelson

This commit is contained in:
julien.pierre.boogz%sun.com 2008-02-08 22:13:22 +00:00
Родитель db179aac9c
Коммит 6cf9eceb7e
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -39,7 +39,7 @@
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* $Id: ssl3con.c,v 1.103 2007-08-22 06:12:02 nelson%bolyard.com Exp $ */
/* $Id: ssl3con.c,v 1.104 2008-02-08 22:13:22 julien.pierre.boogz%sun.com Exp $ */
#include "nssrenam.h"
#include "cert.h"
@ -5538,6 +5538,8 @@ ssl3_HandleClientHello(sslSocket *ss, SSL3Opaque *b, PRUint32 length)
return rv; /* error code is set. */
}
memset(&ss->serverExtensionSenders[0], 0,
sizeof ss->serverExtensionSenders);
rv = ssl3_InitState(ss);
if (rv != SECSuccess) {
return rv; /* ssl3_InitState has set the error code. */
@ -5982,6 +5984,9 @@ ssl3_HandleV2ClientHello(sslSocket *ss, unsigned char *buffer, int length)
ssl_GetSSL3HandshakeLock(ss);
memset(&ss->serverExtensionSenders[0], 0,
sizeof ss->serverExtensionSenders);
rv = ssl3_InitState(ss);
if (rv != SECSuccess) {
ssl_ReleaseSSL3HandshakeLock(ss);