diff options
author | Ricardo Mestre <mestre@cvs.openbsd.org> | 2016-10-20 21:09:47 +0000 |
---|---|---|
committer | Ricardo Mestre <mestre@cvs.openbsd.org> | 2016-10-20 21:09:47 +0000 |
commit | 1f5e77203819b4c2627dcfab35f20a5efd105357 (patch) | |
tree | 3810d7ec6c5e532ea2d70b3d00b9a375bddb2afd /libexec/spamd/grey.c | |
parent | 907d9e920192b698cb7e3427bb036c8a0daf8793 (diff) |
- Remove useless var assignment
- Use memset(*b, 0, len) instead of bzero(*b, len)
- Use memcpy(*dst, *src, len) instead of bcopy(*src, *dst, len)
- Use explicit_bzero(3) instead of bzero(3) to clean temporary HMAC
Remarks from deraadt@ (duly noted!!), reviewed and OK by henning@ and tb@
Diffstat (limited to 'libexec/spamd/grey.c')
-rw-r--r-- | libexec/spamd/grey.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libexec/spamd/grey.c b/libexec/spamd/grey.c index d36288cbdd8..cb375af1318 100644 --- a/libexec/spamd/grey.c +++ b/libexec/spamd/grey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grey.c,v 1.63 2016/03/25 16:31:32 mestre Exp $ */ +/* $OpenBSD: grey.c,v 1.64 2016/10/20 21:09:46 mestre Exp $ */ /* * Copyright (c) 2004-2006 Bob Beck. All rights reserved. @@ -598,7 +598,6 @@ greyscan(char *dbname) freeaddrlists(); free(a); a = NULL; - asiz = 0; return(0); bad: (void) do_changes(db); @@ -607,7 +606,6 @@ greyscan(char *dbname) freeaddrlists(); free(a); a = NULL; - asiz = 0; return(-1); } |