From: Linus Nordberg Date: Tue, 24 Jan 2012 12:17:12 +0000 (+0100) Subject: Move a comment, for clarification. X-Git-Tag: libradsec-0.0.4~85 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=radsecproxy.git;a=commitdiff_plain;h=02d0d00a69efa12cb00b048267b4800d14e5f454 Move a comment, for clarification. --- diff --git a/lib/conf.c b/lib/conf.c index e54ad54..e813409 100644 --- a/lib/conf.c +++ b/lib/conf.c @@ -125,11 +125,11 @@ rs_context_read_config(struct rs_context *ctx, const char *config_file) config->realms = r; } cfg_realm = cfg_getnsec (cfg, "realm", i); - /* We use a copy of the return value of cfg_title() since it's const. */ s = cfg_title (cfg_realm); if (s == NULL) return rs_err_ctx_push_fl (ctx, RSE_CONFIG, __FILE__, __LINE__, "missing realm name"); + /* We use a copy of the return value of cfg_title() since it's const. */ r->name = strdup (s); if (r->name == NULL) return rs_err_ctx_push_fl (ctx, RSE_NOMEM, __FILE__, __LINE__, NULL);