summaryrefslogtreecommitdiff
path: root/src/util/crypto
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-04-03 11:18:31 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-04-03 13:26:41 +0200
commit274fe6a4f8bcb23e31929430110c0b52e9ce233a (patch)
treec3fb9185e2e5da9d79cd16f1890b6134e61ab9ff /src/util/crypto
parentbebeea7ed99394c4061810ed15121bd0f5ac4964 (diff)
downloadsssd-274fe6a4f8bcb23e31929430110c0b52e9ce233a.tar.gz
sssd-274fe6a4f8bcb23e31929430110c0b52e9ce233a.tar.bz2
sssd-274fe6a4f8bcb23e31929430110c0b52e9ce233a.zip
Check for correct variable name
https://fedorahosted.org/sssd/ticket/1864
Diffstat (limited to 'src/util/crypto')
-rw-r--r--src/util/crypto/nss/nss_obfuscate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/crypto/nss/nss_obfuscate.c b/src/util/crypto/nss/nss_obfuscate.c
index c0882d4e..842b58d1 100644
--- a/src/util/crypto/nss/nss_obfuscate.c
+++ b/src/util/crypto/nss/nss_obfuscate.c
@@ -112,7 +112,7 @@ static int generate_random_key(TALLOC_CTX *mem_ctx,
}
randkeydata = PK11_GetKeyData(randkey);
- if (randkey == NULL) {
+ if (randkeydata == NULL) {
DEBUG(1, ("Failure to get key data (err %d)\n",
PR_GetError()));
ret = EIO;