Changeset 599 for trunk/server/source3/lib/access.c
- Timestamp:
- Jul 6, 2011, 8:21:13 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/server/source3/lib/access.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/access.c
r414 r599 179 179 { 180 180 const char **client = (const char **)item; 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 181 197 182 198 /* … … 185 201 */ 186 202 187 if (string_match(tok, client[ADDR_INDEX])) { 188 return true; 189 } 190 191 if (strnequal(client[ADDR_INDEX],"::ffff:",7) && 192 !strnequal(tok, "::ffff:",7)) { 193 /* client[ADDR_INDEX] is an IPv4 mapped to IPv6, but 194 * the list item is not. Try and match the IPv4 part of 195 * address only. This will happen a lot on IPv6 enabled 196 * systems with IPv4 allow/deny lists in smb.conf. 197 * Bug #5311. JRA. 198 */ 199 if (string_match(tok, (client[ADDR_INDEX])+7)) { 200 return true; 201 } 203 if (string_match(tok_addr, cli_addr)) { 204 return true; 202 205 } 203 206
Note:
See TracChangeset
for help on using the changeset viewer.
