fix uninitialised read in process_host_announce
authorNoel Power <noel.power@suse.com>
Wed, 28 Oct 2015 21:17:42 +0000 (21:17 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 5 Nov 2015 20:12:10 +0000 (21:12 +0100)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/nmbd/nmbd_incomingdgrams.c

index 9a69252..6fedcfd 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);