]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix an uninitialized variable found by the IBM Checker
authorVolker Lendecke <vl@samba.org>
Sun, 5 Oct 2008 02:38:42 +0000 (19:38 -0700)
committerJeremy Allison <jra@samba.org>
Sun, 5 Oct 2008 02:38:42 +0000 (19:38 -0700)
source/libads/ldap.c

index 063645febf75cc13cecf0c0a6b5ed764c41f8118..842e4fd0df10a7b3f4b93c21454ebcc72cfb7e03 100644 (file)
@@ -2639,6 +2639,7 @@ ADS_STATUS ads_domain_func_level(ADS_STRUCT *ads, uint32 *val)
                if ( (ads_s = ads_init( ads->server.realm, ads->server.workgroup, 
                        ads->server.ldap_server )) == NULL )
                {
+                       status = ADS_ERROR_NT(NT_STATUS_NO_MEMORY);
                        goto done;
                }
                ads_s->auth.flags = ADS_AUTH_ANON_BIND;