X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=acl.c;h=e1415050e6e47a1397689bbcbcdc341693834e71;hp=8b9c8b39498e9e8f6f47fcb6507189bd3f2182fd;hb=eb8ac00d795be355154f237d7e29f8ecf9999846;hpb=9de1287d67c9562e9140c6dc7deb0c01c4e10cc0 diff --git a/acl.c b/acl.c index 8b9c8b39..e1415050 100644 --- a/acl.c +++ b/acl.c @@ -1,18 +1,24 @@ /* - * Copyright (C) 2005-2012 Andre Noll + * Copyright (C) 2005-2014 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;