From: Timothy Miller Date: Mon, 7 Sep 2009 10:01:58 +0000 (+0200) Subject: s3:smbd: Fix bug 6696 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6ce8928e88d92c5a5d703b52e6dc95a5c79d732;p=thirdparty%2Fsamba.git s3:smbd: Fix bug 6696 smbd crashes when using mdns (not avahi) support --- diff --git a/source/smbd/dnsregister.c b/source/smbd/dnsregister.c index ff9be435a62..f02739ef8df 100644 --- a/source/smbd/dnsregister.c +++ b/source/smbd/dnsregister.c @@ -168,7 +168,7 @@ bool dns_register_smbd_reply(struct dns_reg_state *dns_state, { int mdnsd_conn_fd = -1; - if (dns_state->srv_ref == NULL) { + if ((dns_state == NULL) || (dns_state->srv_ref == NULL)) { return false; }