httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@atropos.c2.org
Subject missing_htons.patch
Date Mon, 26 Feb 1996 21:12:02 GMT
	Patch to make the proxy work on machines which require htons()
(htons was everywhere but this one location, it seems.)

	I've put it in /httpd/incoming. Please move & number
appropriately, thanks.


From: sameer@c2.org (Sameer Parekh)
Subject: Fix missing htons() in mod_proxy
Affects: mod_proxy.c
Comments: There was a missing htons(port) in mod_proxy.c

*** apache_1.1b0+ak/src/mod_proxy.c	Sun Feb 25 14:33:24 1996
--- apache/src/mod_proxy.c	Mon Feb 26 13:05:19 1996
***************
*** 2480,2486 ****
  	    *(p++) = '\0';
  	    port = atoi(p);
  	}
! 	server.sin_port = port;
  	err = host2addr(host, &server.sin_addr);
  	if (err != NULL) return proxyerror(r, err); /* give up */
      }
--- 2480,2486 ----
  	    *(p++) = '\0';
  	    port = atoi(p);
  	}
! 	server.sin_port = htons(port);
  	err = host2addr(host, &server.sin_addr);
  	if (err != NULL) return proxyerror(r, err); /* give up */
      }

-- 
Sameer Parekh					Voice:   510-601-9777x3
Community ConneXion, Inc.			FAX:     510-601-9734
The Internet Privacy Provider			Dialin:  510-658-6376
http://www.c2.org/ (or login as "guest")		sameer@c2.org

Mime
View raw message