pluto: Make sure connection name is null-terminated during DPD restart.

This commit is contained in:
Tobias Brunner
2011-04-19 13:48:51 +02:00
parent f36a6ebd30
commit 2653c08513
+1
View File
@@ -5851,6 +5851,7 @@ dpd_timeout(struct state *st)
/* caching the connection name before deletion */ /* caching the connection name before deletion */
strncpy(cname, c->name, BUF_LEN); strncpy(cname, c->name, BUF_LEN);
cname[BUF_LEN-1] = '\0';
if (c->kind == CK_INSTANCE) if (c->kind == CK_INSTANCE)
{ {