summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2012-03-26 19:08:23 -0700
committerGeoff Levand <geoff@infradead.org>2012-03-26 19:08:23 -0700
commitdbb6ce1119c8fc1f30bb18062b5ab3d6260bb0b1 (patch)
tree4f0954ae44694e08e7f042094a4fad8463f60da7
parent7bf51a6b66f47e06b3f903d60f15aedbc39130eb (diff)
downloadtalos-petitboot-dbb6ce1119c8fc1f30bb18062b5ab3d6260bb0b1.tar.gz
talos-petitboot-dbb6ce1119c8fc1f30bb18062b5ab3d6260bb0b1.zip
Zero automatic sockaddr
Signed-off-by: Geoff Levand <geoff@infradead.org>
-rw-r--r--discover/udev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/udev.c b/discover/udev.c
index 798d744..bd7c6bd 100644
--- a/discover/udev.c
+++ b/discover/udev.c
@@ -122,6 +122,7 @@ struct udev *udev_init(struct device_handler *handler)
talloc_set_destructor(udev, udev_destructor);
+ memset(&addr, 0, sizeof addr);
addr.sun_family = AF_UNIX;
strcpy(addr.sun_path, PBOOT_DEVICE_SOCKET);
OpenPOWER on IntegriCloud