Commit ed8ed221 authored by Pascal Buhler's avatar Pascal Buhler

check for NULL value in debug module

be even more defensive
parent ac9ebfbd
......@@ -512,7 +512,7 @@ srtp_err_status_t srtp_crypto_kernel_load_debug_module(
srtp_kernel_debug_module_t *kdm, *new;
/* defensive coding */
if (new_dm == NULL) {
if (new_dm == NULL || new_dm->name == NULL) {
return srtp_err_status_bad_param;
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