Chromium Code Reviews| 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); |
| } |
| } |