Skip to content

Commit

Permalink
Release 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gwanglst committed Aug 16, 2022
1 parent ed0511c commit fa39a18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/liblsquic/lsquic_stock_shi.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ stock_shi_insert (void *hash_ctx, void *key, unsigned key_sz,
lsquic_malo_put(he);
return -1;
}
memmove((char *)(he->key.buf), (char *)key, key_sz);
memmove(he->key.buf, key, key_sz);
((char *)(he->key.buf))[key_sz] = 0;
he->key.sz = key_sz;
he->data = he->key.buf + he->key.sz + 1;
memmove((char *)(he->data), (char *)data, data_sz);
he->data = (char *)he->key.buf + he->key.sz + 1;
memmove(he->data, data, data_sz);
he->data_sz = data_sz;
he->expiry = expiry;
memset(&he->lhash_elem, 0, sizeof(he->lhash_elem));
Expand Down

0 comments on commit fa39a18

Please sign in to comment.