summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2020-07-20 20:27:38 -0700
committerIsaac Boukris <iboukris@sn-devel-184>2020-08-04 08:51:42 +0000
commit2297c883b52ddda7d8a6a143f632ffbef7fe1a10 (patch)
tree060cba8a4d387b1f87430c50cce58d36009df344 /source3
parenteaea3c0a62ba6fa942d22fb7506e201de9076977 (diff)
downloadsamba-2297c883b52ddda7d8a6a143f632ffbef7fe1a10.tar.gz
s3: libsmb: Cleanup - ensure ss_list variables are initialized with NULL.
No logic changes. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Isaac Boukris <iboukris@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/namequery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 827fb209cbe..bc65975474a 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -2674,7 +2674,7 @@ NTSTATUS internal_resolve_name(const char *name,
tok = resolve_order[i];
if((strequal(tok, "host") || strequal(tok, "hosts"))) {
- struct sockaddr_storage *ss_list;
+ struct sockaddr_storage *ss_list = NULL;
status = resolve_hosts(talloc_tos(),
name,
name_type,
@@ -2719,7 +2719,7 @@ NTSTATUS internal_resolve_name(const char *name,
}
goto done;
} else if (strequal(tok, "lmhosts")) {
- struct sockaddr_storage *ss_list;
+ struct sockaddr_storage *ss_list = NULL;
status = resolve_lmhosts_file_as_sockaddr(
talloc_tos(),
get_dyn_LMHOSTSFILE(),