X-Git-Url: http://www.project-moonshot.org/gitweb/?p=radsecproxy.git;a=blobdiff_plain;f=lib%2Fconf.c;h=0f00fd834dcb18aab7574d29fef9480e38a8324a;hp=14bc3ef598784bf5bb48241b1ee9ce9b922916f7;hb=73d7353cb7a244d08fdd8b6d14e01db4b00824b7;hpb=6d5c276000a65e35dae2f672913c767e696cb56a diff --git a/lib/conf.c b/lib/conf.c index 14bc3ef..0f00fd8 100644 --- a/lib/conf.c +++ b/lib/conf.c @@ -89,6 +89,8 @@ rs_context_read_config(struct rs_context *ctx, const char *config_file) return rs_err_ctx_push_fl (ctx, RSE_CONFIG, __FILE__, __LINE__, "missing config name"); r->name = strdup (s); + if (!r->name) + return rs_err_ctx_push_fl (ctx, RSE_NOMEM, __FILE__, __LINE__, NULL); typestr = cfg_getstr (cfg_config, "type"); if (!strcmp (typestr, "UDP"))