diff options
author | alexei.volkov.bugs%sun.com <devnull@localhost> | 2008-11-05 21:07:48 +0000 |
---|---|---|
committer | alexei.volkov.bugs%sun.com <devnull@localhost> | 2008-11-05 21:07:48 +0000 |
commit | 186ad07c6ad322aba1c7d394dc5226722b1b579e (patch) | |
tree | 45eecebec4c7854d53d4494f50ae5fecfe8cc859 /security/nss/lib/libpkix/pkix_pl_nss/module | |
parent | 5af02735d3cbfc5a5a0896ed70516235280a1b94 (diff) | |
download | nss-hg-186ad07c6ad322aba1c7d394dc5226722b1b579e.tar.gz |
Additional fix for bug 432260. r=nelson
Diffstat (limited to 'security/nss/lib/libpkix/pkix_pl_nss/module')
-rw-r--r-- | security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.c b/security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.c index 7b05fef1b..9e1072a96 100644 --- a/security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.c +++ b/security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.c @@ -309,6 +309,7 @@ pkix_pl_HttpDefaultClient_HdrCheckComplete( /* set available number of bytes in the buffer */ client->capacity = contentLength; client->connectStatus = HTTP_RECV_BODY; + *pKeepGoing = PKIX_TRUE; break; default: @@ -324,10 +325,10 @@ pkix_pl_HttpDefaultClient_HdrCheckComplete( */ if (client->filledupBytes < contentLength) { client->connectStatus = HTTP_RECV_BODY; + *pKeepGoing = PKIX_TRUE; } else { client->connectStatus = HTTP_COMPLETE; *pKeepGoing = PKIX_FALSE; - goto cleanup; } } @@ -346,9 +347,6 @@ pkix_pl_HttpDefaultClient_HdrCheckComplete( PKIX_CHECK(PKIX_PL_Free(client->rcvBuf, plContext), PKIX_FREEFAILED); client->rcvBuf = body; - - - *pKeepGoing = PKIX_TRUE; cleanup: @@ -478,8 +476,10 @@ pkix_pl_HttpDefaultClient_Destroy( client = (PKIX_PL_HttpDefaultClient *)object; - PKIX_PL_Free(client->rcvHeaders, plContext); - client->rcvHeaders = NULL; + if (client->rcvHeaders) { + PKIX_PL_Free(client->rcvHeaders, plContext); + client->rcvHeaders = NULL; + } if (client->GETBuf != NULL) { PR_smprintf_free(client->GETBuf); |