fix uninitialised read in process_host_announce
authorNoel Power <noel.power@suse.com>
Wed, 28 Oct 2015 21:17:42 +0000 (21:17 +0000)
committerKarolin Seeger <kseeger@samba.org>
Fri, 20 Nov 2015 08:11:18 +0000 (09:11 +0100)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 7ade51901381507beaeac92e9b0d2f0d424123a9)

source3/nmbd/nmbd_incomingdgrams.c

index 9a69252997bba9c1227ad73d46ab3fbb49a1a7b4..6fedcfd0255d1a9a04d0b63f3dfc137cd5119d31 100644 (file)
@@ -105,6 +105,8 @@ void process_host_announce(struct subnet_record *subrec, struct packet_struct *p
        struct server_record *servrec;
        unstring work_name;
        unstring source_name;
+       ZERO_STRUCT(source_name);
+       ZERO_STRUCT(announce_name);
 
        pull_ascii_fstring(comment, buf+31);