X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=acl.c;h=b5da7467fc0525add878631f5ab950da5b589672;hp=ffcd168572fee34bcface386c57d7bf5f7cbadeb;hb=f08b3d684d761560969b70de99f309bbd60d7b2e;hpb=732bf143e456df7fc2e845884fbbdfdaf3fafebc diff --git a/acl.c b/acl.c index ffcd1685..b5da7467 100644 --- a/acl.c +++ b/acl.c @@ -1,16 +1,19 @@ /* - * Copyright (C) 2005-2009 Andre Noll + * Copyright (C) 2005-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file acl.c Access control lists for paraslash senders. */ +#include + #include "para.h" #include "error.h" #include "string.h" #include "list.h" #include "net.h" +#include "acl.h" /** * Describes one entry in the blacklist/whitelist of a paraslash sender. @@ -55,7 +58,7 @@ static int acl_lookup(int fd, struct list_head *acl) PARA_ERROR_LOG("Can not determine peer address: %s\n", strerror(errno)); goto no_match; } - v4_addr = extract_v4_addr(&ss); + extract_v4_addr(&ss, &v4_addr); if (!v4_addr.s_addr) goto no_match;