projects
/
radsecproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d5c276
)
Handle an ENOMEM case in conf.c.
author
Linus Nordberg
<linus@nordu.net>
Fri, 11 Mar 2011 12:18:44 +0000
(13:18 +0100)
committer
Linus Nordberg
<linus@nordu.net>
Fri, 11 Mar 2011 12:18:44 +0000
(13:18 +0100)
lib/conf.c
patch
|
blob
|
history
diff --git
a/lib/conf.c
b/lib/conf.c
index
14bc3ef
..
0f00fd8
100644
(file)
--- 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"))