Skip to content

Commit

Permalink
ndb_redis: safety check for log message parameters
Browse files Browse the repository at this point in the history
(cherry picked from commit 0a51e8c)
(cherry picked from commit b28b3d2)
(cherry picked from commit 0aa54ef)
  • Loading branch information
miconda committed Jul 4, 2016
1 parent 6c272d3 commit da043c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ndb_redis/redis_client.c
Expand Up @@ -402,7 +402,8 @@ void * redisc_exec_argv(redisc_server_t *rsrv, int argc, const char **argv, cons
if(rsrv==NULL || rsrv->ctxRedis==NULL)
{
LM_ERR("no redis context found for server %.*s\n",
rsrv->sname->len, rsrv->sname->s);
(rsrv)?rsrv->sname->len:0,
(rsrv)?rsrv->sname->s:"");
return NULL;
}
if(argc<=0)
Expand Down

0 comments on commit da043c9

Please sign in to comment.