Commit 1f0b7ff2 authored by Simon Morlat's avatar Simon Morlat

fix uninitialized values

parent 2dee821f
......@@ -361,7 +361,7 @@ static uint8_t *key_with_salt(C_SrtpSecret_t* s, int32_t role) {
memcpy(saltedKey, s->keyInitiator, s->initKeyLen/8);
memcpy(saltedKey + s->initKeyLen/8, s->saltInitiator, s->initSaltLen/8);
} else {
saltedKey=malloc((s->respKeyLen + s->respSaltLen + pad)/8);
saltedKey=ortp_malloc0((s->respKeyLen + s->respSaltLen + pad)/8);
memcpy(saltedKey, s->keyResponder, s->respKeyLen/8);
memcpy(saltedKey + s->respKeyLen/8, s->saltResponder, s->respSaltLen/8);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment