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)
  • Loading branch information
miconda committed Jun 29, 2016
1 parent 29b483f commit 0aa54ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ndb_redis/redis_client.c
Expand Up @@ -429,7 +429,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 0aa54ef

Please sign in to comment.