summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-09-12 15:45:11 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-09-12 23:49:12 +0200
commitd0df75701e529e2d872691f8be047c5b55118930 (patch)
tree3109acd39850635c1ef2ac351bd1be1c26a23f07 /source4/lib
parentfad5e3be5e4739e9e19f3f87a49c059336a436d4 (diff)
downloadsamba-d0df75701e529e2d872691f8be047c5b55118930.tar.gz
samba-d0df75701e529e2d872691f8be047c5b55118930.tar.bz2
samba-d0df75701e529e2d872691f8be047c5b55118930.zip
s4:lib/socket/interface.c - "ifaces" strictly needs to be initialised
Please consider a failing "get_interfaces" call and the "talloc_free()" operation on a possible uninitialised "ifaces" on line 326. https://bugzilla.samba.org/show_bug.cgi?id=8397 Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Sep 12 23:49:12 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/socket/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/socket/interface.c b/source4/lib/socket/interface.c
index 42e1946768..7994716e83 100644
--- a/source4/lib/socket/interface.c
+++ b/source4/lib/socket/interface.c
@@ -293,7 +293,7 @@ void load_interface_list(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, s
{
const char **ptr = lpcfg_interfaces(lp_ctx);
int i;
- struct iface_struct *ifaces;
+ struct iface_struct *ifaces = NULL;
int total_probed;
bool enable_ipv6 = lpcfg_parm_bool(lp_ctx, NULL, "ipv6", "enable", true);