diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-01-31 16:39:20 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-01-31 16:39:20 +0000 |
commit | 9f37dad55f82471f3978e79780bf3032a79074df (patch) | |
tree | 2cc04efac53d2c6224554912aeceddb345996608 /usr.bin/ssh/authfd.c | |
parent | 9811e660435f0dc79fd6c2ea9043d3cc376d05b9 (diff) |
replace most bzero with explicit_bzero, except a few that cna be memset
ok djm dtucker
Diffstat (limited to 'usr.bin/ssh/authfd.c')
-rw-r--r-- | usr.bin/ssh/authfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/authfd.c b/usr.bin/ssh/authfd.c index 586d008506b..9d617509606 100644 --- a/usr.bin/ssh/authfd.c +++ b/usr.bin/ssh/authfd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authfd.c,v 1.91 2013/12/29 04:29:25 djm Exp $ */ +/* $OpenBSD: authfd.c,v 1.92 2014/01/31 16:39:19 tedu Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -100,7 +100,7 @@ ssh_get_authentication_socket(void) if (!authsocket) return -1; - bzero(&sunaddr, sizeof(sunaddr)); + memset(&sunaddr, 0, sizeof(sunaddr)); sunaddr.sun_family = AF_UNIX; strlcpy(sunaddr.sun_path, authsocket, sizeof(sunaddr.sun_path)); |