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 65be950..a15c3f2 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);
        }