Fixed return values of several functions (e.g. return FALSE for pointer types).

This commit is contained in:
Tobias Brunner
2012-05-31 17:39:04 +02:00
parent 060b508e0e
commit 79d5c4f06b
8 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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))
{