X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=acl.c;h=794a4fa2a25b53c96c0d7eb2a71a164f5e56b492;hp=087ea0c805c102bace697596061978b64aa22f72;hb=448c8f8e8c1c1eeb88ae468c0c3ab25bed6f2ac8;hpb=395aeb9da9c9cc2febe91b5a906c72e59e217594 diff --git a/acl.c b/acl.c index 087ea0c8..794a4fa2 100644 --- a/acl.c +++ b/acl.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2009 Andre Noll + * Copyright (C) 2005-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -13,6 +13,7 @@ #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 +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;