Skip to content

Commit

Permalink
Merge pull request #1659 from private-octopus/mbed-tls-key-sign
Browse files Browse the repository at this point in the history
Fix context allocation for siduck app
  • Loading branch information
huitema authored Mar 20, 2024
2 parents f394c42 + 3ddf9b4 commit 25727d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: cpp
config-file: ./.github/codeql/codeql-config.yml
Expand All @@ -41,4 +41,4 @@ jobs:
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
3 changes: 2 additions & 1 deletion picohttp/siduck.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ int siduck_callback(picoquic_cnx_t* cnx,
int ret = 0;
siduck_ctx_t * ctx = (siduck_ctx_t*)callback_ctx;

if (ctx == NULL) {
if (ctx == NULL || callback_ctx == picoquic_get_default_callback_context(cnx->quic)) {
ctx = siduck_create_ctx(NULL);
if (ctx != NULL) {
ctx->is_auto_alloc = 1;
Expand All @@ -91,6 +91,7 @@ int siduck_callback(picoquic_cnx_t* cnx,
}
else {
ret = 0;

}

if (ret == 0) {
Expand Down

0 comments on commit 25727d4

Please sign in to comment.