From e506a551187dc92683f0903515dd1d2b57ce05e5 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 8 May 2013 09:30:08 +0200 Subject: Fix missing initialization in Python bindings for libsss_nss_idmap If sss_nss_getsidbyid() fails free() will try to work on an uninitialized value. --- src/python/pysss_nss_idmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit