[SSSD] [PATCH] Fix bad check
Jakub Hrozek
jhrozek at redhat.com
Wed Aug 1 17:11:29 UTC 2012
Please see the attached patch.
-------------- next part --------------
>From 0190d75b47397391ee215b920e94a1d8dda45e78 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Wed, 1 Aug 2012 18:11:22 +0200
Subject: [PATCH] Fix bad check
---
src/responder/pam/pamsrv_cmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c
index 31040787a776d53296020c28648b228c91e3944d..92cd734079be76f6c40873c00278f75d5947d686 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;
}
--
1.7.10.4
More information about the sssd-devel
mailing list