summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2011-07-06 18:09:22 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2011-07-06 18:09:22 +0000
commit01287004f09da4a00b880d67b72083dcb78aa3db (patch)
treefedfc92c5dbcf602fcf807da600c37de8efddda7 /usr.bin
parentbae3fc95440e29d93e661215f0ec12cef6b54c6d (diff)
bzero the agent address. the kernel was for a while very cranky about
these things. evne though that's fixed, always good to initialize memory. ok deraadt djm
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/authfd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/authfd.c b/usr.bin/ssh/authfd.c
index d0292995db8..c6807b7f7c6 100644
--- a/usr.bin/ssh/authfd.c
+++ b/usr.bin/ssh/authfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfd.c,v 1.85 2011/05/15 08:09:01 djm Exp $ */
+/* $OpenBSD: authfd.c,v 1.86 2011/07/06 18:09:21 tedu Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -100,6 +100,7 @@ ssh_get_authentication_socket(void)
if (!authsocket)
return -1;
+ bzero(&sunaddr, sizeof(sunaddr));
sunaddr.sun_family = AF_UNIX;
strlcpy(sunaddr.sun_path, authsocket, sizeof(sunaddr.sun_path));