SSLerr(SSL_F_SSL3_GET_RECORD, ERR_R_INTERNAL_ERROR);
SSLerr(SSL_F_DTLS1_BUFFER_RECORD, ERR_R_INTERNAL_ERROR);
dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned long long priority){    DTLS1_RECORD_DATA *rdata;	pitem *item;	rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));	item = pitem_new(priority, rdata);	if (rdata == NULL || item == NULL)		{		if (rdata != NULL) OPENSSL_free(rdata);		if (item != NULL) pitem_free(item);				SSLerr(SSL_F_SSL3_GET_RECORD, ERR_R_INTERNAL_ERROR);		return(0);		}		rdata->packet = s->packet;	rdata->packet_length = s->packet_length;	memcpy(&(rdata->rbuf), &(s->s3->rbuf), sizeof(SSL3_BUFFER));	memcpy(&(rdata->rrec), &(s->s3->rrec), sizeof(SSL3_RECORD));	item->data = rdata;	/* insert should not fail, since duplicates are dropped */	if (pqueue_insert(queue->q, item) == NULL)		{		OPENSSL_free(rdata);		pitem_free(item);		return(0);		}	s->packet = NULL;	s->packet_length = 0;	memset(&(s->s3->rbuf), 0, sizeof(SSL3_BUFFER));	memset(&(s->s3->rrec), 0, sizeof(SSL3_RECORD));		ssl3_setup_buffers(s);		return(1);    }