summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-08-01 18:11:22 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-08-01 21:13:07 +0200
commit39b20025db12d88cd564666b3de0dbe0ce09ff2c (patch)
tree0d1da76658476fec75a25647bfa86b1f5d846458
parente0c977418f90260aa66cce41b1f8f294660ed734 (diff)
downloadsssd-39b20025db12d88cd564666b3de0dbe0ce09ff2c.tar.gz
sssd-39b20025db12d88cd564666b3de0dbe0ce09ff2c.tar.bz2
sssd-39b20025db12d88cd564666b3de0dbe0ce09ff2c.zip
Fix bad check
-rw-r--r--src/responder/pam/pamsrv_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
index 31040787..92cd7340 100644
--- a/src/responder/pam/pamsrv_cmd.c
+++ b/src/responder/pam/pamsrv_cmd.c
@@ -387,7 +387,7 @@ static errno_t write_selinux_string(const char *username, char *string)
}
tmp_path = talloc_asprintf(tmp_ctx, "%sXXXXXX", path);
- if (path == NULL) {
+ if (tmp_path == NULL) {
ret = ENOMEM;
goto done;
}