summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-03-30 09:04:38 +0000
committerLuke Leighton <lkcl@samba.org>2000-03-30 09:04:38 +0000
commitcdeb293b5c7fa74759a7a76b247d17bced2d704d (patch)
tree86eeef4f58e999061f2533ae6e7b7bfd90177a4a
parent3a2aa3451a52ec1b1f18d2ca63091f40bd45fe89 (diff)
downloadsamba-cdeb293b5c7fa74759a7a76b247d17bced2d704d.tar.gz
ZERO_STRUCT not bzero
-rw-r--r--source/libsmb/smbencrypt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/libsmb/smbencrypt.c b/source/libsmb/smbencrypt.c
index f92aa44e612..a9d3c71e39a 100644
--- a/source/libsmb/smbencrypt.c
+++ b/source/libsmb/smbencrypt.c
@@ -159,7 +159,7 @@ void lm_owf_genW(const UNISTR2 * pwd, uchar p16[16])
dump_data(100, p16, 16);
#endif
/* clear out local copy of user's password (just being paranoid). */
- bzero(pwrd, sizeof(pwrd));
+ ZERO_STRUCT(pwrd);
}
/* Does the LM owf of a user's password */
@@ -188,7 +188,7 @@ void lm_owf_gen(const char *pwd, uchar p16[16])
dump_data(100, p16, 16);
#endif
/* clear out local copy of user's password (just being paranoid). */
- bzero(pwrd, sizeof(pwrd));
+ ZERO_STRUCT(pwrd);
}
/* Does both the NT and LM owfs of a user's password */
@@ -231,7 +231,7 @@ void nt_owf_gen(const char *pwd, uchar nt_p16[16])
dump_data(100, nt_p16, 16);
#endif
/* clear out local copy of user's password (just being paranoid). */
- bzero(pwrd, sizeof(pwrd));
+ ZERO_STRUCT(pwrd);
}
/* Does both the NT and LM owfs of a user's UNICODE password */