summaryrefslogtreecommitdiff
path: root/source3/nsswitch/idmap_ad.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-12-12 15:16:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:26 -0500
commit7165944469a7d3a249ac070cd702f9b812be4bae (patch)
treec7ef644b708aed14a762afbb61dfe52cfc56b2ed /source3/nsswitch/idmap_ad.c
parent79416a522681f7384a42bd69c8a02e94616610a1 (diff)
downloadsamba-7165944469a7d3a249ac070cd702f9b812be4bae.tar.gz
samba-7165944469a7d3a249ac070cd702f9b812be4bae.tar.bz2
samba-7165944469a7d3a249ac070cd702f9b812be4bae.zip
r20118: Fix some more warnings
(This used to be commit b6db21ff65139f45a1789105241e4018b61ca472)
Diffstat (limited to 'source3/nsswitch/idmap_ad.c')
-rw-r--r--source3/nsswitch/idmap_ad.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/nsswitch/idmap_ad.c b/source3/nsswitch/idmap_ad.c
index 00438d8ab0..6195684d96 100644
--- a/source3/nsswitch/idmap_ad.c
+++ b/source3/nsswitch/idmap_ad.c
@@ -145,11 +145,9 @@ struct idmap_ad_context {
/* Initialize and check conf is appropriate */
static NTSTATUS idmap_ad_initialize(struct idmap_domain *dom, const char *params)
{
- NTSTATUS ret;
struct idmap_ad_context *ctx;
char *config_option;
const char *range;
- const char *tmp;
ADS_STRUCT *ads;
/* verify AD is reachable (not critical, we may just be offline at start) */
@@ -375,13 +373,12 @@ again:
}
for (i = 0; i < count; i++) {
- LDAPMessage *entry;
+ LDAPMessage *entry = NULL;
DOM_SID sid;
enum id_type type;
struct id_map *map;
uint32_t id;
uint32_t atype;
- int n;
if (i == 0) { /* first entry */
entry = ads_first_entry(ads, res);
@@ -587,13 +584,12 @@ again:
}
for (i = 0; i < count; i++) {
- LDAPMessage *entry;
+ LDAPMessage *entry = NULL;
DOM_SID sid;
enum id_type type;
struct id_map *map;
uint32_t id;
uint32_t atype;
- int n;
if (i == 0) { /* first entry */
entry = ads_first_entry(ads, res);