diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-19 11:12:36 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-19 11:12:36 +0800 |
commit | f4e4152d9c7f7c9edea36bbbb405d44aa0540fb5 (patch) | |
tree | b07e5f23cfd084ec0c30dcb1ccc20eac586f42da | |
parent | 1b972e7e6321adc8d1f78a06c31d2c0468e7afcf (diff) |
Assign newly reallocated pointer to sessions back
to the container.
-rw-r--r-- | shopify.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -312,6 +312,7 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, sessions[nsessions].nonce = malloc(nonce_len + 1); strcpy(sessions[nsessions].nonce, nonce); sessions[nsessions + 1].shop = NULL; + container->sessions = sessions; if (embedded) { const size_t page_len = REDIR_PAGE_LEN + key_len + host_len + auth_url_len; |