summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-05-08 09:30:08 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-10 16:18:46 +0200
commite506a551187dc92683f0903515dd1d2b57ce05e5 (patch)
tree8cea0cf63b0aa1288ea613444ba99135725adaf0
parent20b29e62e8df861f8f6e718cb6c8dbc9e4ec43c0 (diff)
downloadsssd-e506a551187dc92683f0903515dd1d2b57ce05e5.tar.gz
sssd-e506a551187dc92683f0903515dd1d2b57ce05e5.tar.bz2
sssd-e506a551187dc92683f0903515dd1d2b57ce05e5.zip
Fix missing initialization in Python bindings for libsss_nss_idmap
If sss_nss_getsidbyid() fails free() will try to work on an uninitialized value.
-rw-r--r--src/python/pysss_nss_idmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/pysss_nss_idmap.c b/src/python/pysss_nss_idmap.c
index dd1fb4c9..c98054e7 100644
--- a/src/python/pysss_nss_idmap.c
+++ b/src/python/pysss_nss_idmap.c
@@ -113,7 +113,7 @@ static int do_getsidbyid(PyObject *py_result, PyObject *py_id)
long id;
const char *id_str;
char *endptr;
- char *sid;
+ char *sid = NULL;
int ret;
enum sss_id_type id_type;