pluto: Make sure connection name is null-terminated during DPD restart.
This commit is contained in:
1 parent
f36a6ebd30
commit
2653c08513
1 file changed
+1
@@ -5851,6 +5851,7 @@ dpd_timeout(struct state *st)
|
||||
|
||||
/* caching the connection name before deletion */
|
||||
strncpy(cname, c->name, BUF_LEN);
|
||||
cname[BUF_LEN-1] = '\0';
|
||||
|
||||
if (c->kind == CK_INSTANCE)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user