| 49 | } |
| 50 | |
| 51 | static apr_status_t get_socket_from_path(apr_pool_t *p, |
| 52 | const char* path, |
| 53 | apr_socket_t **out_sock) |
| 54 | { |
| 55 | apr_socket_t *s; |
| 56 | apr_status_t rv; |
| 57 | *out_sock = NULL; |
| 58 | |
| 59 | rv = apr_socket_create(&s, AF_UNIX, SOCK_STREAM, 0, p); |
| 60 | if (rv != APR_SUCCESS) { |
| 61 | return rv; |
| 62 | } |
| 63 | |
| 64 | rv = ap_proxy_connect_uds(s, path, p); |
| 65 | if (rv != APR_SUCCESS) { |
| 66 | return rv; |
| 67 | } |
| 68 | |
| 69 | *out_sock = s; |
| 70 | |
| 71 | return APR_SUCCESS; |
| 72 | } |
| 73 | |
| 74 | static apr_status_t send_socket(apr_pool_t *p, |
| 75 | apr_socket_t *s, |
no test coverage detected