diff options
author | Martin Willi <martin@strongswan.org> | 2007-08-06 12:35:28 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-08-06 12:35:28 +0000 |
commit | 3b574567ea72df9867fd6dbaebd670b21a929fc8 (patch) | |
tree | 3e297c5361ec35b3f108cc9fb16ff3f4881aed77 /src/charon/control | |
parent | 7ad634a2ef1469c452adb73d6a05938c2300c99f (diff) | |
download | strongswan-3b574567ea72df9867fd6dbaebd670b21a929fc8.tar.bz2 strongswan-3b574567ea72df9867fd6dbaebd670b21a929fc8.tar.xz |
fixed segfault when sourceip in stroke message is NULL
Diffstat (limited to 'src/charon/control')
-rwxr-xr-x | src/charon/control/interfaces/stroke_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charon/control/interfaces/stroke_interface.c b/src/charon/control/interfaces/stroke_interface.c index 3d4e6372f..71d444491 100755 --- a/src/charon/control/interfaces/stroke_interface.c +++ b/src/charon/control/interfaces/stroke_interface.c @@ -336,11 +336,11 @@ static void stroke_add_conn(stroke_msg_t *msg, FILE *out) goto destroy_ids; } - if (msg->add_conn.me.virtual_ip) + if (msg->add_conn.me.virtual_ip && msg->add_conn.me.sourceip) { my_vip = host_create_from_string(msg->add_conn.me.sourceip, 0); } - if (msg->add_conn.other.virtual_ip) + if (msg->add_conn.other.virtual_ip && msg->add_conn.other.sourceip) { other_vip = host_create_from_string(msg->add_conn.other.sourceip, 0); } |