summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2010-02-24 00:14:50 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-02-24 00:23:15 +0100
commitb86ec008ff8233bcf5ca6823790bf4efb240c060 (patch)
tree6ddf5fc8b0d71df7162f43398f001a0c305ed966
parent28b028d29fb75a1265ff472373936e2c558e6b51 (diff)
downloadfribid-b86ec008ff8233bcf5ca6823790bf4efb240c060.tar.gz
fribid-b86ec008ff8233bcf5ca6823790bf4efb240c060.tar.bz2
fribid-b86ec008ff8233bcf5ca6823790bf4efb240c060.zip
Return NULL on failure, not false
Some boolean/pointer confusion fix. Signed-off-by: Linus Walleij <linus.ml.wallei@gmail.com>
-rw-r--r--client/keyfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/keyfile.c b/client/keyfile.c
index 29dc6b8..129716c 100644
--- a/client/keyfile.c
+++ b/client/keyfile.c
@@ -130,7 +130,7 @@ static SEC_PKCS12DecoderContext *pkcs12_open(const char *p12Data, const int p12L
if (PK11_InitPin(slot, NULL, randomString) != SECSuccess) {
fprintf(stderr, BINNAME ": failed to set PIN for NSS DB\n");
- return false;
+ return NULL;
}
}