projects
/
radsecproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a8609e5
)
Use rs_strdup().
author
Linus Nordberg
<linus@nordu.net>
Thu, 26 Apr 2012 08:08:59 +0000
(10:08 +0200)
committer
Linus Nordberg
<linus@nordu.net>
Thu, 26 Apr 2012 08:08:59 +0000
(10:08 +0200)
lib/conf.c
patch
|
blob
|
history
diff --git
a/lib/conf.c
b/lib/conf.c
index
ad1a5f8
..
90fa256
100644
(file)
--- a/
lib/conf.c
+++ b/
lib/conf.c
@@
-11,6
+11,7
@@
#include <radsec/radsec.h>
#include <radsec/radsec-impl.h>
#include "peer.h"
#include <radsec/radsec.h>
#include <radsec/radsec-impl.h>
#include "peer.h"
+#include "util.h"
#include "debug.h"
#if 0
#include "debug.h"
#if 0
@@
-132,9
+133,9
@@
rs_context_read_config(struct rs_context *ctx, const char *config_file)
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. */
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);
+ r->name =
rs_strdup (ctx,
s);
if (r->name == NULL)
if (r->name == NULL)
- return
rs_err_ctx_push_fl (ctx, RSE_NOMEM, __FILE__, __LINE__, NULL)
;
+ return
RSE_NOMEM
;
typestr = cfg_getstr (cfg_realm, "type");
if (strcmp (typestr, "UDP") == 0)
typestr = cfg_getstr (cfg_realm, "type");
if (strcmp (typestr, "UDP") == 0)