lib: Fix a pointless error check
[nivanova/samba-autobuild/.git] / source4 / lib / socket / access.c
index ab39d63ef5bd4e30e6cb1ccc3335802ad08b53d4..adc8105ca9d298196b6e5f143442c15bae8729a5 100644 (file)
@@ -27,7 +27,7 @@
    The code is used here with permission.
 
    The code has been considerably changed from the original. Bug reports
-   should be sent to samba@samba.org
+   should be sent to samba-technical@lists.samba.org
 */
 
 #include "includes.h"
@@ -249,9 +249,9 @@ static bool allow_access_internal(TALLOC_CTX *mem_ctx,
 }
 
 /* return true if access should be allowed */
-bool allow_access(TALLOC_CTX *mem_ctx,
-                 const char **deny_list, const char **allow_list,
-                 const char *cname, const char *caddr)
+bool socket_allow_access(TALLOC_CTX *mem_ctx,
+                        const char **deny_list, const char **allow_list,
+                        const char *cname, const char *caddr)
 {
        bool ret;
        char *nc_cname = talloc_strdup(mem_ctx, cname);
@@ -346,7 +346,7 @@ bool socket_check_access(struct socket_context *sock,
                return false;
        }
 
-       ret = allow_access(mem_ctx, deny_list, allow_list, name, addr->addr);
+       ret = socket_allow_access(mem_ctx, deny_list, allow_list, name, addr->addr);
        
        if (ret) {
                DEBUG(2,("socket_check_access: Allowed connection to '%s' from %s (%s)\n",