summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%google.com <devnull@localhost>2008-01-11 07:57:51 +0000
committerwtc%google.com <devnull@localhost>2008-01-11 07:57:51 +0000
commit873cba8a2efe63c02b7c7f49461bf2cf48fa682a (patch)
tree3a6223ca46f32bb1ffe2d27a74a48989b9b38390
parent92be3762286d04ecaf83b4c1e38f3651e323e975 (diff)
downloadnss-hg-873cba8a2efe63c02b7c7f49461bf2cf48fa682a.tar.gz
Bug 403563: declare variables at the beginning of a block.
CVS 403563 Tag: NSS_RFC4507BIS_BRANCH
-rw-r--r--security/nss/lib/ssl/ssl3ext.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/nss/lib/ssl/ssl3ext.c b/security/nss/lib/ssl/ssl3ext.c
index 06c29acff..6f47b6ff9 100644
--- a/security/nss/lib/ssl/ssl3ext.c
+++ b/security/nss/lib/ssl/ssl3ext.c
@@ -333,7 +333,7 @@ ssl3_SendSessionTicketExt(
PRBool append,
PRUint32 maxBytes)
{
- sslSessionID *sid;
+ PRInt32 extension_length;
NewSessionTicket *session_ticket = NULL;
/* Ignore the SessionTicket extension if processing is disabled. */
@@ -343,14 +343,14 @@ ssl3_SendSessionTicketExt(
/* Empty extension length = extension_type (2-bytes) +
* length(extension_data) (2-bytes)
*/
- PRInt32 extension_length = 4;
+ extension_length = 4;
/* If we are a client then send a session ticket if one is availble.
* Servers that support the extension and are willing to negotiate the
* the extension always respond with an empty extension.
*/
if (!ss->sec.isServer) {
- sid = ss->sec.ci.sid;
+ sslSessionID *sid = ss->sec.ci.sid;
session_ticket = &sid->u.ssl3.session_ticket;
if (session_ticket->ticket.data) {
if (ss->xtnData.ticketTimestampVerified) {