X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=acl.c;h=5ef9a51ca381e3f6aa3a21de21eb0e0d3b37114f;hp=087ea0c805c102bace697596061978b64aa22f72;hb=f2940b2fbde865256bc35c74e3bd624d2ff48d2e;hpb=fae6ed3cc6d240eefcc111bdd04f637e3cda5dd0 diff --git a/acl.c b/acl.c index 087ea0c8..5ef9a51c 100644 --- a/acl.c +++ b/acl.c @@ -1,18 +1,24 @@ /* - * Copyright (C) 2005-2009 Andre Noll + * Copyright (C) 2005 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file acl.c Access control lists for paraslash senders. */ +#include +#include #include +#include +#include +#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. @@ -57,7 +63,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;