Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Oct 5, 2023
1 parent c054bb4 commit d71adab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openssl/pbaes256.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ pubnub_bymebl_t pbaes256_decrypt_alloc(pubnub_bymebl_t data, uint8_t const* key,
PUBNUB_LOG_ERROR("Failed AES-256 decryption\n");
free(result.ptr);
result.ptr = NULL;
result.size = 0;
return result;
}
result.ptr[result.size] = '\0';
return result;
Expand Down

0 comments on commit d71adab

Please sign in to comment.