r1798: fix the build
authorStefan Metzmacher <metze@samba.org>
Fri, 13 Aug 2004 00:55:15 +0000 (00:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:57:58 +0000 (12:57 -0500)
metze
(This used to be commit a1bfc94ab35c426b75efedea0df21acec7d1eeed)

source4/libcli/ldap/ldap.c

index d7c24e8c0375c4cab08d435822874ebe04535c96..16f775a4511008c6193465c4a1a30926e54c861b 100644 (file)
@@ -1705,9 +1705,10 @@ struct ldap_message *ldap_receive(struct ldap_connection *conn, int msgid,
 
        while (True) {
                struct asn1_data data;
-               result = new_ldap_message();
                BOOL res;
 
+               result = new_ldap_message();
+
                if (!asn1_read_sequence_until(conn->sock, &data, endtime))
                        return NULL;