aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest/hooks/unencrypted_notify.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-11-10 17:41:23 +0100
committerMartin Willi <martin@revosec.ch>2011-01-05 16:45:44 +0100
commit60b14332b3ba6b1e15520fa4bbc717735a7dd025 (patch)
tree9e69fa549c3131873d0cf55aaae7ec399d3ddfee /src/conftest/hooks/unencrypted_notify.c
parentb0f6b31db8be3a014a7a31338eab2feabda54cec (diff)
downloadstrongswan-60b14332b3ba6b1e15520fa4bbc717735a7dd025.tar.bz2
strongswan-60b14332b3ba6b1e15520fa4bbc717735a7dd025.tar.xz
Fix insertion of non hex encoded payload data
Diffstat (limited to 'src/conftest/hooks/unencrypted_notify.c')
-rw-r--r--src/conftest/hooks/unencrypted_notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conftest/hooks/unencrypted_notify.c b/src/conftest/hooks/unencrypted_notify.c
index 1d7f42def..8737158ad 100644
--- a/src/conftest/hooks/unencrypted_notify.c
+++ b/src/conftest/hooks/unencrypted_notify.c
@@ -80,7 +80,7 @@ METHOD(listener_t, ike_updown, bool,
data = chunk_skip(chunk_create(this->data, strlen(this->data)), 2);
data = chunk_from_hex(data, NULL);
}
- else if (data.len)
+ else if (this->data && strlen(this->data))
{
data = chunk_clone(chunk_create(this->data, strlen(this->data)));
}