check_numeric_acl() should return -1 when IPs don't match.
Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
		
							parent
							
								
									8963c84dad
								
							
						
					
					
						commit
						184d07e47c
					
				@ -292,7 +292,7 @@ static int check_numeric_acl (const struct acl_s *acl, const char *ip)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                /* If x and y don't match, the IP addresses don't match */
 | 
					                /* If x and y don't match, the IP addresses don't match */
 | 
				
			||||||
                if (x != y)
 | 
					                if (x != y)
 | 
				
			||||||
                        return 0;
 | 
					                        return -1;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /* The addresses match, return the permission */
 | 
					        /* The addresses match, return the permission */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user