mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
Set the algorithm member on cipher_t when allocating AES crypto instance. Apply same fix to NULL cipher.
This commit is contained in:
@@ -68,6 +68,7 @@ null_cipher_alloc(cipher_t **c, int key_len) {
|
||||
|
||||
/* set pointers */
|
||||
*c = (cipher_t *)pointer;
|
||||
(*c)->algorithm = NULL_CIPHER;
|
||||
(*c)->type = &null_cipher;
|
||||
(*c)->state = pointer + sizeof(cipher_t);
|
||||
|
||||
|
Reference in New Issue
Block a user