apr_interval_time_t t;
rv = apr_os_sock_get(&rawsock, sock);
- if (rv) {
+ if (rv != APR_SUCCESS) {
return rv;
}
rv = apr_socket_timeout_get(sock, &t);
- if (rv) {
+ if (rv != APR_SUCCESS) {
return rv;
}
rv = apr_socket_create(&s, AF_UNIX, SOCK_STREAM, 0, p);
- if (rv) {
+ if (rv != APR_SUCCESS) {
return rv;
}
apr_cpystrn(sa.sun_path, path, sizeof(sa.sun_path));
rv = socket_connect_un(s, &sa);
- if (rv) {
+ if (rv != APR_SUCCESS) {
return rv;
}
char b = '\0';
rv = apr_os_sock_get(&rawsock, outbound);
- if (rv) {
+ if (rv != APR_SUCCESS) {
return rv;
}
rv = apr_os_sock_get(&srawsock, s);
- if (rv) {
+ if (rv != APR_SUCCESS) {
return rv;
}
rv = get_socket_from_path(r->pool, url, &sock);
- if (rv) {
+ if (rv != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r,
"proxy: FD: Failed to connect to '%s'",
url);
clientsock = ap_get_module_config(r->connection->conn_config, &core_module);
rv = send_socket(r->pool, sock, clientsock);
- if (rv) {
+ if (rv != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r,
"proxy: FD: send_socket failed:");
return HTTP_INTERNAL_SERVER_ERROR;
* the tcp connection to the client.
*/
rv = apr_socket_create(&dummy, APR_INET, SOCK_STREAM, APR_PROTO_TCP, r->connection->pool);
- if (rv) {
+ if (rv != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r,
"proxy: FD: failed to create dummy socket");
return HTTP_INTERNAL_SERVER_ERROR;