Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/blacklist/bin fix memset



details:   https://anonhg.NetBSD.org/src/rev/78b7e7ad8e22
branches:  trunk
changeset: 805934:78b7e7ad8e22
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 23 22:34:13 2015 +0000

description:
fix memset

diffstat:

 external/bsd/blacklist/bin/blacklistd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d52a3f52453b -r 78b7e7ad8e22 external/bsd/blacklist/bin/blacklistd.c
--- a/external/bsd/blacklist/bin/blacklistd.c   Fri Jan 23 22:34:00 2015 +0000
+++ b/external/bsd/blacklist/bin/blacklistd.c   Fri Jan 23 22:34:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: blacklistd.c,v 1.26 2015/01/23 21:33:37 christos Exp $ */
+/*     $NetBSD: blacklistd.c,v 1.27 2015/01/23 22:34:13 christos Exp $ */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "config.h"
 #endif
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: blacklistd.c,v 1.26 2015/01/23 21:33:37 christos Exp $");
+__RCSID("$NetBSD: blacklistd.c,v 1.27 2015/01/23 22:34:13 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -111,7 +111,7 @@
 static int
 getremoteaddress(bl_info_t *bi, struct sockaddr_storage *rss, socklen_t *rsl)
 {
-       *rsl = sizeof(rss);
+       *rsl = sizeof(*rss);
        memset(rss, 0, *rsl);
 
        if (getpeername(bi->bi_fd, (void *)rss, rsl) != -1)



Home | Main Index | Thread Index | Old Index