diff options
| author | Parménides GV <parmegv@sdf.org> | 2014-09-23 18:10:57 +0200 | 
|---|---|---|
| committer | Parménides GV <parmegv@sdf.org> | 2014-09-23 18:10:57 +0200 | 
| commit | d0e7ba3029b2fd42582413aa95773fe7dbdede90 (patch) | |
| tree | 733b8601d6e3a070fc54bde280526e16d0c69507 /app/openssl/ssl/d1_lib.c | |
| parent | 248ce016ac2f33df9673e90277733abfd854f27d (diff) | |
Updated native subprojects from ics-openvpn.
Diffstat (limited to 'app/openssl/ssl/d1_lib.c')
| -rw-r--r-- | app/openssl/ssl/d1_lib.c | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/app/openssl/ssl/d1_lib.c b/app/openssl/ssl/d1_lib.c index 106939f2..6bde16fa 100644 --- a/app/openssl/ssl/d1_lib.c +++ b/app/openssl/ssl/d1_lib.c @@ -176,9 +176,12 @@ static void dtls1_clear_queues(SSL *s)  	while ( (item = pqueue_pop(s->d1->buffered_app_data.q)) != NULL)  		{ -		frag = (hm_fragment *)item->data; -		OPENSSL_free(frag->fragment); -		OPENSSL_free(frag); +		rdata = (DTLS1_RECORD_DATA *) item->data; +		if (rdata->rbuf.buf) +			{ +			OPENSSL_free(rdata->rbuf.buf); +			} +		OPENSSL_free(item->data);  		pitem_free(item);  		}  	}  | 
