1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Make sure we initialize conn to NULL, because a routine we call may give an error and not touch conn, and then we get an error when trying to TALLOC_FREE it.

Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Richard Sharpe 2015-04-23 12:36:28 -07:00 committed by Jeremy Allison
parent 79dc084dcb
commit 471744a32d

View File

@ -210,7 +210,7 @@ int get_my_ip_address( struct sockaddr_storage **pp_ss )
DNS_ERROR do_gethostbyname(const char *server, const char *host)
{
struct dns_connection *conn;
struct dns_connection *conn = NULL;
struct dns_request *req, *resp;
DNS_ERROR err;