Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Unified Diff: net/third_party/nss/ssl/sslgathr.c

Issue 9764001: Add DTLS support to NSS, contributed by Eric Rescorla. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Made a second pass, reviewed dtls1con.c only for coding style Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/third_party/nss/ssl/sslgathr.c
===================================================================
--- net/third_party/nss/ssl/sslgathr.c (revision 127709)
+++ net/third_party/nss/ssl/sslgathr.c (working copy)
@@ -434,6 +434,7 @@
gs->state = GS_INIT;
gs->writeOffset = 0;
gs->readOffset = 0;
+ gs->dtlsPacketOffset = 0;
Ryan Sleevi 2012/03/22 22:26:37 What about gs->dtlsPacket.len ?
wtc 2012/03/23 00:21:18 I don't fully understand this code, so I am provin
Ryan Sleevi 2012/03/23 00:38:28 Yes, but neither PORT_Free resets gs->inbuf.len /
ekr 2012/03/23 12:46:41 So your concern here is the initial state of gs->d
wtc 2012/03/23 13:48:49 I analyzed this last night and have fixed this in
status = sslBuffer_Grow(&gs->buf, 4096);
return status;
}
@@ -445,6 +446,7 @@
if (gs) { /* the PORT_*Free functions check for NULL pointers. */
PORT_ZFree(gs->buf.buf, gs->buf.space);
PORT_Free(gs->inbuf.buf);
+ PORT_Free(gs->dtlsPacket.buf);
}
}

Powered by Google App Engine
This is Rietveld 408576698