Skip to content

Commit

Permalink
Start of the rlm_rediswho structure should be the standard config str…
Browse files Browse the repository at this point in the history
…uct, not a pointer fixes #2350
  • Loading branch information
arr2036 committed Nov 7, 2018
1 parent b0a4c6e commit 6da184f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/rlm_rediswho/rlm_rediswho.c
Expand Up @@ -37,7 +37,7 @@ RCSID("$Id$")
#include <freeradius-devel/redis/cluster.h>

typedef struct rlm_rediswho {
fr_redis_conf_t *conf; //!< Connection parameters for the Redis server.
fr_redis_conf_t conf; //!< Connection parameters for the Redis server.
//!< Must be first field in this struct.

char const *name; //!< Instance name.
Expand Down Expand Up @@ -235,7 +235,7 @@ static int mod_instantiate(void *instance, CONF_SECTION *conf)
{
rlm_rediswho_t *inst = instance;

inst->cluster = fr_redis_cluster_alloc(inst, conf, inst->conf, true, NULL, NULL, NULL);
inst->cluster = fr_redis_cluster_alloc(inst, conf, &inst->conf, true, NULL, NULL, NULL);
if (!inst->cluster) return -1;

return 0;
Expand Down

0 comments on commit 6da184f

Please sign in to comment.