mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
whitelist: Make sure listed IDs are null-terminated.
This commit is contained in:
parent
816f7f238f
commit
7684ca2e8c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user