projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e0b919
)
Terminate string when using %{Attribute-Name[*]}
author
Alan T. DeKok
<aland@freeradius.org>
Thu, 26 May 2011 08:54:25 +0000
(10:54 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Thu, 26 May 2011 08:54:25 +0000
(10:54 +0200)
src/main/xlat.c
patch
|
blob
|
history
diff --git
a/src/main/xlat.c
b/src/main/xlat.c
index
690d1f6
..
04902ab
100644
(file)
--- a/
src/main/xlat.c
+++ b/
src/main/xlat.c
@@
-238,9
+238,10
@@
static size_t xlat_packet(void *instance, REQUEST *request,
*(out++) = '\n';
- if (outlen
== 0
) break;
+ if (outlen
<= 1
) break;
}
+ *out = '\0';
return total;
}