diff options
author | Sumit Bose <sbose@redhat.com> | 2013-05-08 09:30:08 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-10 16:18:46 +0200 |
commit | e506a551187dc92683f0903515dd1d2b57ce05e5 (patch) | |
tree | 8cea0cf63b0aa1288ea613444ba99135725adaf0 | |
parent | 20b29e62e8df861f8f6e718cb6c8dbc9e4ec43c0 (diff) | |
download | sssd-e506a551187dc92683f0903515dd1d2b57ce05e5.tar.gz sssd-e506a551187dc92683f0903515dd1d2b57ce05e5.tar.xz 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/pysss_nss_idmap.c b/src/python/pysss_nss_idmap.c index dd1fb4c9d..c98054e7e 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; |