diff options
author | Martin Willi <martin@revosec.ch> | 2010-05-05 11:30:18 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-05-05 11:35:54 +0200 |
commit | 75d4322d68b74538f20c5e5c74eba861577f4671 (patch) | |
tree | 72c29cd3019853d4bd00ea765388f8f8a80010e8 /src/libstrongswan/plugins/pem | |
parent | 37c2aac89d93441c36ee98089b8ab33ca42b6b9a (diff) | |
download | strongswan-75d4322d68b74538f20c5e5c74eba861577f4671.tar.bz2 strongswan-75d4322d68b74538f20c5e5c74eba861577f4671.tar.xz |
Do not check pointer, but length of a chunk
Diffstat (limited to 'src/libstrongswan/plugins/pem')
-rw-r--r-- | src/libstrongswan/plugins/pem/pem_builder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/pem/pem_builder.c b/src/libstrongswan/plugins/pem/pem_builder.c index 65be9501b..a15c3f258 100644 --- a/src/libstrongswan/plugins/pem/pem_builder.c +++ b/src/libstrongswan/plugins/pem/pem_builder.c @@ -528,7 +528,7 @@ static void *pem_load(credential_type_t type, int subtype, va_list args) break; } - if (pem.ptr) + if (pem.len) { return load_from_blob(pem, type, subtype, cb, cb_data, flags); } |