Zero automatic sockaddr
authorGeoff Levand <geoff@infradead.org>
Tue, 27 Mar 2012 02:08:23 +0000 (19:08 -0700)
committerGeoff Levand <geoff@infradead.org>
Tue, 27 Mar 2012 02:08:23 +0000 (19:08 -0700)
Signed-off-by: Geoff Levand <geoff@infradead.org>
discover/udev.c

index 798d744873ef049117323dcead7e989650102ae3..bd7c6bd1abb28f2038fb828e2253fc665632f661 100644 (file)
@@ -122,6 +122,7 @@ struct udev *udev_init(struct device_handler *handler)
 
        talloc_set_destructor(udev, udev_destructor);
 
 
        talloc_set_destructor(udev, udev_destructor);
 
+       memset(&addr, 0, sizeof addr);
        addr.sun_family = AF_UNIX;
        strcpy(addr.sun_path, PBOOT_DEVICE_SOCKET);
 
        addr.sun_family = AF_UNIX;
        strcpy(addr.sun_path, PBOOT_DEVICE_SOCKET);