X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=acl.c;h=7762a990d38a090ae661371cdee1066fb075c429;hp=02df1e481e8f683a90d0c69a5ced3c40cf3f9e9c;hb=96c1687a52b775b6786841d586239e071ef139c1;hpb=b0fe6d882dd35b01360a66e130d6714aff7b6a0d diff --git a/acl.c b/acl.c index 02df1e48..7762a990 100644 --- a/acl.c +++ b/acl.c @@ -1,12 +1,17 @@ /* - * Copyright (C) 2005-2010 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 #include +#include +#include +#include #include "para.h" #include "error.h" @@ -57,7 +62,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;