projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
404fc84
)
terminate && check VP
author
Alan T. DeKok
<aland@freeradius.org>
Wed, 19 Apr 2017 18:42:34 +0000
(14:42 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Wed, 19 Apr 2017 18:42:34 +0000
(14:42 -0400)
src/modules/rlm_eap/rlm_eap.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_eap/rlm_eap.c
b/src/modules/rlm_eap/rlm_eap.c
index
a930d6f
..
14265ee
100644
(file)
--- a/
src/modules/rlm_eap/rlm_eap.c
+++ b/
src/modules/rlm_eap/rlm_eap.c
@@
-469,10
+469,12
@@
static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void *instance, REQUEST *re
new = talloc_array(vp, char, vp->vp_length + 1);
memcpy(new, old, vp->vp_length);
+ new[vp->length] = '\0';
new[vp->length + 1] = '\0';
vp->vp_strvalue = new;
rad_const_free(old);
+ VERIFY_VP(vp);
}
}