diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-05-18 09:27:24 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-05-18 09:57:01 +0200 |
commit | 7684ca2e8c67f10d2bf6792c65b67fa05929c6de (patch) | |
tree | b94cce2c75e6d97937aa07565a0141f314aa20f2 /src | |
parent | 816f7f238fbc83e66d4fbdfc49cbca1b46d1dae0 (diff) | |
download | strongswan-7684ca2e8c67f10d2bf6792c65b67fa05929c6de.tar.bz2 strongswan-7684ca2e8c67f10d2bf6792c65b67fa05929c6de.tar.xz |
whitelist: Make sure listed IDs are null-terminated.
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/plugins/whitelist/whitelist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcharon/plugins/whitelist/whitelist.c b/src/libcharon/plugins/whitelist/whitelist.c index 5f511f2c5..0a3a34459 100644 --- a/src/libcharon/plugins/whitelist/whitelist.c +++ b/src/libcharon/plugins/whitelist/whitelist.c @@ -80,6 +80,7 @@ static int send_msg(int type, char *id) { break; } + msg.id[sizeof(msg.id) - 1] = '\0'; printf("%s\n", msg.id); } } |