r7918: fixed a crash bug in the ldap server
authorAndrew Tridgell <tridge@samba.org>
Sun, 26 Jun 2005 03:29:26 +0000 (03:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:50 +0000 (13:18 -0500)
(This used to be commit 44ded17bc2501cd8d03fb3a94a3b7c502f5a2128)

source4/ldap_server/ldap_server.c

index e635dae1ab6363932547365e6ad61e33bec72cd6..9c0e883e36357bab4e7da2dbf72cc64ea789c1bf 100644 (file)
@@ -105,7 +105,7 @@ static void ldapsrv_process_message(struct ldapsrv_connection *conn,
                }
                data_blob_free(&blob);
                blob = data_blob_talloc(call, NULL, wrapped.length + 4);
-               if (q->data.data == NULL) {
+               if (blob.data == NULL) {
                        goto failed;
                }
                RSIVAL(blob.data, 0, wrapped.length);