]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Do not check pointer, but length of a chunk
authorMartin Willi <martin@revosec.ch>
Wed, 5 May 2010 09:30:18 +0000 (11:30 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 5 May 2010 09:35:54 +0000 (11:35 +0200)
src/libstrongswan/plugins/pem/pem_builder.c

index 65be9501bab3db2512408679f05f7afdf79ffe09..a15c3f2588079cc460441b5ec32f02e96ea39b42 100644 (file)
@@ -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);
        }