| 1394 | } |
| 1395 | |
| 1396 | static int validate_acl(FFStream *stream, HTTPContext *c) |
| 1397 | { |
| 1398 | int ret = 0; |
| 1399 | IPAddressACL *acl; |
| 1400 | |
| 1401 | |
| 1402 | /* if stream->acl is null validate_acl_list will return 1 */ |
| 1403 | ret = validate_acl_list(stream->acl, c); |
| 1404 | |
| 1405 | if (stream->dynamic_acl[0]) { |
| 1406 | acl = parse_dynamic_acl(stream, c); |
| 1407 | |
| 1408 | ret = validate_acl_list(acl, c); |
| 1409 | |
| 1410 | free_acl_list(acl); |
| 1411 | } |
| 1412 | |
| 1413 | return ret; |
| 1414 | } |
| 1415 | |
| 1416 | /* compute the real filename of a file by matching it without its |
| 1417 | extensions to all the stream filenames */ |
no test coverage detected