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 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);