Commit a6c434d7 authored by Paul E. Jones's avatar Paul E. Jones

Return NULL when allocating memory of size zero

parent 03e237e0
......@@ -71,6 +71,10 @@ void *srtp_crypto_alloc(size_t size)
{
void *ptr;
if (!size) {
return NULL;
}
ptr = calloc(1, size);
if (ptr) {
......
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