s3-net: Make sure we don't call free on garbage.
authorAndreas Schneider <asn@samba.org>
Tue, 29 Jun 2010 08:07:22 +0000 (10:07 +0200)
committerAndreas Schneider <asn@samba.org>
Tue, 29 Jun 2010 09:12:12 +0000 (11:12 +0200)
Found by clang-analyzer.

source3/utils/net_ads_gpo.c

index b120ca597b6f626f6955028d2b9a7834f0f1badf..3d89045c4912eb7ac701174c923cb710ef90d062 100644 (file)
@@ -291,7 +291,7 @@ out:
 
 static int net_ads_gpo_list(struct net_context *c, int argc, const char **argv)
 {
-       ADS_STRUCT *ads;
+       ADS_STRUCT *ads = NULL;
        ADS_STATUS status;
        LDAPMessage *res = NULL;
        TALLOC_CTX *mem_ctx;