bzero is over, memset is cool. pointed out by halex@
authorreyk <reyk@openbsd.org>
Sat, 26 Jul 2014 09:59:14 +0000 (09:59 +0000)
committerreyk <reyk@openbsd.org>
Sat, 26 Jul 2014 09:59:14 +0000 (09:59 +0000)
usr.sbin/httpd/httpd.c

index 454814d..520ae5e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: httpd.c,v 1.9 2014/07/25 21:29:58 reyk Exp $  */
+/*     $OpenBSD: httpd.c,v 1.10 2014/07/26 09:59:14 reyk Exp $ */
 
 /*
  * Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
@@ -654,7 +654,7 @@ prefixlen2mask6(u_int8_t prefixlen, u_int32_t *mask)
        if (prefixlen > 128)
                prefixlen = 128;
 
-       bzero(&s6, sizeof(s6));
+       memset(&s6, 0, sizeof(s6));
        for (i = 0; i < prefixlen / 8; i++)
                s6.s6_addr[i] = 0xff;
        i = prefixlen % 8;