aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/pgp/pgp_builder.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-05-07 15:47:00 +0200
committerTobias Brunner <tobias@strongswan.org>2012-05-31 17:39:04 +0200
commit79d5c4f06b8d086d65cec30347560880815fa933 (patch)
tree6bebc2c1a0a56778b2686c9cc58d728464db8c87 /src/libstrongswan/plugins/pgp/pgp_builder.c
parent060b508e0e24425b9bba8d2cda1e672e636f3262 (diff)
downloadstrongswan-79d5c4f06b8d086d65cec30347560880815fa933.tar.bz2
strongswan-79d5c4f06b8d086d65cec30347560880815fa933.tar.xz
Fixed return values of several functions (e.g. return FALSE for pointer types).
Diffstat (limited to 'src/libstrongswan/plugins/pgp/pgp_builder.c')
-rw-r--r--src/libstrongswan/plugins/pgp/pgp_builder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/pgp/pgp_builder.c b/src/libstrongswan/plugins/pgp/pgp_builder.c
index 440e70a18..361157742 100644
--- a/src/libstrongswan/plugins/pgp/pgp_builder.c
+++ b/src/libstrongswan/plugins/pgp/pgp_builder.c
@@ -152,7 +152,7 @@ static private_key_t *parse_private_key(chunk_t blob)
}
if (!pgp_read_scalar(&packet, 1, &version))
{
- return FALSE;
+ return NULL;
}
switch (version)
{
@@ -166,7 +166,7 @@ static private_key_t *parse_private_key(chunk_t blob)
break;
default:
DBG1(DBG_LIB, "PGP packet version V%d not supported", version);
- return FALSE;
+ return NULL;
}
if (!pgp_read_scalar(&packet, 4, &created))
{