Skip to content

Commit

Permalink
evapi: safety check on log message during queue get
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Apr 3, 2023
1 parent d68671f commit 789deca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/evapi/evapi_dispatch.c
Expand Up @@ -177,7 +177,9 @@ evapi_env_t* evapi_queue_get(void)
}
lock_release(&_evapi_queue_packets->qlock);

LM_DBG("getting message from queue [%.*s]\n", renv->msg.len, renv->msg.s);
if(renv!=NULL) {
LM_DBG("getting message from queue [%.*s]\n", renv->msg.len, renv->msg.s);
}

return renv;
}
Expand Down

0 comments on commit 789deca

Please sign in to comment.