支持CI,支持cmake编译
This commit is contained in:
@@ -203,12 +203,12 @@ void quic_init_serverHello(struct quic_server_hello* stServerHello, UINT32 tag_n
|
||||
// memset(&stServerHello->random, 0, RANDOM_LEN);
|
||||
if(tag_num == 0){
|
||||
}else{
|
||||
(stServerHello->ext_tags) = (struct quic_tlv_t **)dictator_malloc(thread_seq,tag_num*sizeof(struct quic_tlv_t*));
|
||||
(stServerHello->ext_tags) = (quic_tlv_t **)dictator_malloc(thread_seq,tag_num*sizeof(quic_tlv_t*));
|
||||
int i=0;
|
||||
for(i=0;i<tag_num;i++)
|
||||
{
|
||||
// stServerHello->ext_tags[i] = (struct quic_tlv_t *)dictator_malloc(thread_seq, sizeof(quic_tlv_t)*20);
|
||||
stServerHello->ext_tags[i] = (struct quic_tlv_t *)dictator_malloc(thread_seq, sizeof(quic_tlv_t));
|
||||
stServerHello->ext_tags[i] = (quic_tlv_t *)dictator_malloc(thread_seq, sizeof(quic_tlv_t));
|
||||
memset(stServerHello->ext_tags[i], 0, sizeof(quic_tlv_t));
|
||||
stServerHello->ext_tags[i]->ptr_value = (char *)dictator_malloc(thread_seq, sizeof(char)*MAX_TAG_VALUE_LEN);
|
||||
stServerHello->ext_tags[i]->length = 0;
|
||||
|
||||
Reference in New Issue
Block a user