Skip to content

Commit

Permalink
Fixed assert in jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
kala13x committed Nov 28, 2024
1 parent 860bfe8 commit eb423ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/jwt.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ XSTATUS XJWT_AddHeader(xjwt_t *pJWT, const char *pHeader, size_t nHeaderLen, xbo
if (bIsEncoded)
{
pJWT->pHeader = (char*)malloc(nHeaderLen + 1);
XASSERT(pHeader, XSTDERR);
XASSERT(pJWT->pHeader, XSTDERR);

memcpy(pJWT->pHeader, pHeader, nHeaderLen);
pJWT->pHeader[nHeaderLen] = '\0';
Expand Down

0 comments on commit eb423ae

Please sign in to comment.