strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
360ef16
)
Fixed undefined behavior in use of stack variable
author
Thomas Egerer
<thomas.egerer@secunet.com>
Wed, 31 Mar 2010 08:04:00 +0000
(10:04 +0200)
committer
Martin Willi
<martin@revosec.ch>
Wed, 31 Mar 2010 09:04:27 +0000
(11:04 +0200)
src/starter/starterwhack.c
patch
|
blob
|
history
diff --git
a/src/starter/starterwhack.c
b/src/starter/starterwhack.c
index
6791639
..
fe68c92
100644
(file)
--- a/
src/starter/starterwhack.c
+++ b/
src/starter/starterwhack.c
@@
-266,6
+266,7
@@
starter_whack_add_pubkey (starter_conn_t *conn, starter_end_t *end
int starter_whack_add_conn(starter_conn_t *conn)
{
+ char esp_buf[256];
whack_message_t msg;
int r;
@@
-302,8
+303,6
@@
int starter_whack_add_conn(starter_conn_t *conn)
/* taken from pluto/whack.c */
if (msg.pfsgroup)
{
- char esp_buf[256];
-
snprintf(esp_buf, sizeof (esp_buf), "%s;%s"
, msg.esp ? msg.esp : ""
, msg.pfsgroup ? msg.pfsgroup : "");