diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-06-04 17:29:40 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-06-11 11:03:13 +0200 |
commit | eeb73dec7961f56cadd92c5d56a3a7009dfff22d (patch) | |
tree | 19cf07488785a84b0cbd5c028d3add917c2ec715 /src/libcharon/plugins/sql/sql_plugin.c | |
parent | b4029a4aae567851c414194dbf99040f27fb16e5 (diff) | |
download | strongswan-eeb73dec7961f56cadd92c5d56a3a7009dfff22d.tar.bz2 strongswan-eeb73dec7961f56cadd92c5d56a3a7009dfff22d.tar.xz |
Ensure buffer in bio_writer_t is properly increased
The previous code was problematic if bufsize/increase was smaller than 8
and an u_int64_t was written when the buffer was too small. Also, for
large chunks and small bufsizes realloc() was called several times
instead of just once.
Diffstat (limited to 'src/libcharon/plugins/sql/sql_plugin.c')
0 files changed, 0 insertions, 0 deletions