diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/conf.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| @@ -241,9 +241,11 @@ struct rs_realm *  rs_conf_find_realm(struct rs_context *ctx, const char *name)  {    struct rs_realm *r; +  assert (ctx); -  for (r = ctx->config->realms; r; r = r->next) -    if (strcmp (r->name, name) == 0) +  if (ctx->config) +    for (r = ctx->config->realms; r; r = r->next) +      if (strcmp (r->name, name) == 0)  	return r;    return NULL; | 
