summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-23 15:25:36 +0100
committerVolker Lendecke <vl@samba.org>2011-02-23 15:59:11 +0100
commit9671615592a2e539a661698373dd3f7c7dd82d73 (patch)
treec89d95adf710c953df2b0a84e3dc11d2d3da9175 /source3
parent8283cdbb1f28517d3e25a958aede0e5a31131f90 (diff)
downloadsamba-9671615592a2e539a661698373dd3f7c7dd82d73.tar.gz
samba-9671615592a2e539a661698373dd3f7c7dd82d73.tar.bz2
samba-9671615592a2e539a661698373dd3f7c7dd82d73.zip
s3: Fix an uninitialized variable use
The "goto error;" lead to the invalid talloc_free. Christian, please check!
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/idmap_autorid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c
index 2b40a998e3..756c6c29af 100644
--- a/source3/winbindd/idmap_autorid.c
+++ b/source3/winbindd/idmap_autorid.c
@@ -455,7 +455,8 @@ static NTSTATUS idmap_autorid_saveconfig(struct autorid_global_config *cfg)
static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom,
const char *params)
{
- struct autorid_global_config *config, *storedconfig;
+ struct autorid_global_config *config;
+ struct autorid_global_config *storedconfig = NULL;
NTSTATUS status;
uint32_t hwm;