projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cb280e
)
Initialize out before calling radius_axlat or radius_axlat_struct
author
Philippe Wooding
<philippe.wooding@networkradius.com>
Tue, 13 Sep 2016 11:20:00 +0000
(13:20 +0200)
committer
Boris Lytochkin
<lytboris@yandex-team.ru>
Sat, 5 Nov 2016 19:48:39 +0000
(22:48 +0300)
src/main/xlat.c
patch
|
blob
|
history
diff --git
a/src/main/xlat.c
b/src/main/xlat.c
index
d527015
..
efcb816
100644
(file)
--- a/
src/main/xlat.c
+++ b/
src/main/xlat.c
@@
-2613,10
+2613,12
@@
ssize_t radius_xlat_struct(char *out, size_t outlen, REQUEST *request, xlat_exp_
ssize_t radius_axlat(char **out, REQUEST *request, char const *fmt, xlat_escape_t escape, void *ctx)
{
+ *out = NULL;
return xlat_expand(out, 0, request, fmt, escape, ctx);
}
ssize_t radius_axlat_struct(char **out, REQUEST *request, xlat_exp_t const *xlat, xlat_escape_t escape, void *ctx)
{
+ *out = NULL;
return xlat_expand_struct(out, 0, request, xlat, escape, ctx);
}