Revert "Fix a valgrind error / segfault in dns_register_smbd()"
authorVolker Lendecke <vl@samba.org>
Tue, 10 Mar 2009 14:46:16 +0000 (15:46 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 31 Mar 2009 10:15:51 +0000 (12:15 +0200)
This reverts commit e47d2091136c4d870bb91b8a84eb9f6fd78eb971.

No idea why, but this causes timeouts in the build farm all over the place
(cherry picked from commit 0cf74151286238890ae0da0863e3a5807f4f3d81)

source/smbd/dnsregister.c

index f304d862d42cb7f346ca28bb46da192923cbd642..2319097ca564bd6371b4541c050b871c0070c7ec 100644 (file)
@@ -109,8 +109,7 @@ void dns_register_smbd(struct dns_reg_state ** dns_state_ptr,
        struct dns_reg_state *dns_state = *dns_state_ptr;
 
        if (dns_state == NULL) {
-               dns_state = talloc_zero(NULL, struct dns_reg_state);
-               *dns_state_ptr = dns_state;
+               *dns_state_ptr = dns_state = talloc(NULL, struct dns_reg_state);
                if (dns_state == NULL) {
                        return;
                }