r5565: fix breakage on gcc 2.96
authorGerald Carter <jerry@samba.org>
Fri, 25 Feb 2005 18:38:19 +0000 (18:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:47 +0000 (10:55 -0500)
(This used to be commit 67f8a1e3bc545d4ebbe0f7d05ea16c6231f2e82c)

source3/lib/smbldap.c

index 3296f7994a8f695e41849fa42c2e3ca029494c8c..68084b04045e5b3f1c871758fd8bde1d7a4ce9d2 100644 (file)
@@ -874,9 +874,9 @@ static int smbldap_connect_system(struct smbldap_state *ldap_state, LDAP * ldap_
 static int smbldap_open(struct smbldap_state *ldap_state)
 {
        int rc, opt_rc;
-       SMB_ASSERT(ldap_state);
        BOOL reopen = False;
                
+       SMB_ASSERT(ldap_state);
 #ifndef NO_LDAP_SECURITY
        if (geteuid() != 0) {
                DEBUG(0, ("smbldap_open: cannot access LDAP when not root..\n"));